Sunday, July 10, 2011

Re: Extending User model with Inheritance - Attribute Error


On Sun, Jul 10, 2011 at 1:05 PM, Brent <brentbatas@gmail.com> wrote:
Hi all,

I am attempting to follow this tutorial:
http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance/

But I am receiving this error:
AttributeError at /login/
'NoneType' object has no attribute 'DoesNotExist'

Here is my stack trace:
http://dpaste.com/565795/

I tried changing the CUSTOM_USER_MODEL field to every permutation of
paths that could possibly lead to my CustomUser class, but they all
gave the same error.


This is not good design. If you want to store some extra fields for a User - i would define just another model called ProfileDetails, FK it to User and use it as such.

Btw, i somehow never liked model-subclassing; but i come from a rdbms background.

-V

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