Extending User object in Django: User model inheritance or use UserProfile?

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-05-03T12:56:09Z Indexed on 2010/05/03 13:08 UTC
Read the original article Hit count: 419

Filed under:
|

To extend the User object with custom fields, the Django docs recommend using UserProfiles. However, according to this answer to a question about this from a year or so back:

extending django.contrib.auth.models.User also works better now -- ever since the refactoring of Django's inheritance code in the models API.

And articles such as this lay out how to extend the User model with custom fields, together with the advantages (retrieving properties directly from the user object, rather than through the .get_profile()).

So I was wondering whether there is any consensus on this issue, or reasons to use one or the other. Or even what the Django team currently think?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-users