Felippe,
Am Montag, 29. Juni 2015 16:15:16 UTC+2 schrieb Felippe Raposo:
-- No, it seems, that my"get_fieldsets" isn't called.
Also when debugging by stepping through the code, as described in my second post, I see when loading the UserChangeForm the 'get_fieldsets' method from django.contrib.auth.admin.UserAdmin is used instead of my custom one.
Regards, Henri
Am Montag, 29. Juni 2015 16:15:16 UTC+2 schrieb Felippe Raposo:
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 <he...@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...@googlegroups.com .
To post to this group, send email to django...@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/144e1ef9-9116-4e20-be5f-9229e95aea90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment