Monday, September 20, 2010

Subclassing User class or User class "profiles" recommended for extra attributes?

Adding extra attributes to User classes seems to be handled originally
by a "profiles".

A new way seems to be to subclass the User class.

One problem with the shiny new way is that lots of code is written to
handle User classes instead of subclasses. The suggested way to fix
this is nontrivial. You must write low level code to return a
subclass every time a User class is asked for.

Do most people still use profiles or is there an easier to to manage
sublassing User classes now?

Thanks!

cs

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate