Monday, June 29, 2015

Re: Cannot overwrite 'get_fieldsets' in custom UserAdmin

Henri, can you set a "pdb.set_trace" or print something  at the beginning of your "get_fieldsets" to see if it is being called or not?

2015-06-28 6:58 GMT-03:00 Henri <henri@art.bieszczady.pl>:
As I use a custom user model the default django user model is not registered. When I try to unregister it I get an error.

See example in the django docs:
https://docs.djangoproject.com/en/1.6/topics/auth/customizing/#a-full-example.

Regards, Henri

--
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/b169e3a8-29a5-4d33-b543-06b8d53597f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/CAP6GVqjYbLF619ZL078mV5SV6g5dcY%2BeSF%2B_Qb%3DkkR_7HfTHjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment