2012/7/14 Melvyn Sopacua <m.r.sopacua@gmail.com>
Important question: Why?
I need to store more information about the user, like birthday, language preference etc
Moreover I need to have two different users and store different information for each user type.
In a near future I will need to integrate auth and facebook login as well (using django-oauth-plus)
Depends on the why. A site (as in a project) only allows one user
profile, so applications calling user.get_user_profile() cannot rely on
their version of the profile being returned. That's one important reason
not to follow the documentation recommendation.
Also, when subclassing you shall not set objects to UserManager. This
will make several queries fail in unexpected ways. Instead, set objects
to the default manager and provide a separate property for the user manager.
Can you please explain better the last part?
When you additionally need to add more information to Group and thus
subclass it, then things get complex real fast.
Having tried this exercise I've now decided to write my own auth package
all together.
There are any resources (links, books, etc..) where I can have a look?
Thanks (and thanks Ernesto as well for his answer)
Alex
--
Alessandro De Noia
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment