Wednesday, April 30, 2014

Error to customize a user

Hello, 

I have a problem when rendering my admin after creating a custom user. 

I followed the tutorial of Django [1] documentation and also Subclass AbstractBaseUser section of the book Twoo Scoops of Django. 

The error is described in this gist [2] and the code is in this repository [3]. 
The strange thing is that I set the USERNAME_FIELD = 'email' field in the model 


[1] # https://docs.djangoproject.com/en/1.5/topics/auth/customizing/ django.contrib.auth.models.CustomUser 
[2] https://gist.github.com/lucassimon/39f08556efa8a324d3fe 
[3] https://github.com/lucassimon/pywatch.com.br/tree/speaker_custom_user/speakers

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5e2ec502-d8bf-439d-befc-eb8032d58f51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment