Wednesday, April 30, 2014

Re: Error to customize a user

You don't have `has_perm` and `has_module_perms` methods defined in your user model while they are required:
https://docs.djangoproject.com/en/1.5/topics/auth/customizing/#custom-users-and-django-contrib-admin

Not sure if it would help coz traceback is not about them but you can at least try and watch if smth will change.

четверг, 1 мая 2014 г., 5:33:13 UTC+4 пользователь Lucas Simon Rodrigues Magalhaes написал:
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 

--
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/f44d8750-a9fd-4ee3-b0e3-a886a32327cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment