Hello guys,

When I had to customize my users in Django 1.5 where UserProfile got 
deprecated,
I found out I'd have to rewrite the UserCreationForm (contrib.auth), as 
described in docs[1].

Is it really necessary to rewrite it all? What if the function 
get_user_model from contrib.auth was used instead of calling the auth User 
model directly? Wouldn't it work?
That's how I imagine it [2]. UserChangeForm also has a "model = User". I 
believe it fits in the same case above.

[1] https://docs.djangoproject.com/en/1.5/topics/auth/customizing/
[2] 
https://github.com/LuanP/django/commit/a6ed3aa292f103ba193407dc96919adb17361f32

Cheers,
Luan.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to