Hello EveryBody,

I'm trying to implement a custom user model, using django 1.5 and the 
example available at:

https://docs.djangoproject.com/en/dev/topics/auth/customizing/#a-full-example

For now, I'm able to create a super user based on my custom model only if 
it has none of ForeignKey or M2M modelfields. When I try to use a 
ForeignKey, for example, the following error occurs (obtained trough 
--traceback option of createsuperuser command):

http://dpaste.com/hold/1019886/

In other way,  I can instantiate the class and it has the attribute 
"_state". Additionally, "_state.db" is None.

How can I fix this? I'm doing something wrong? 

Below, the models:

http://dpaste.com/hold/1019890/

Thank you in advance.

Gabriel Abdalla Cavalcante

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to