> Hello,
>
> I reformulate my previous question having not no answer.
>
> I would like to get control on the password change form of the admin
> site (let us say record some trace in another table).
>
> I put the following code in the admin.py:
>
> class MyUserAdmin(UserAdmin):
> def save_model(self, request, obj, form, change):
> ...
> admin.site.unregister(User)
> admin.site.register(User, MyUserAdmin)
>
> The problem is that when user calls the password change built-in form
> the
> save_model method is not called.
Just a guess: is your application higher up in the INSTALLED_APPS list
than Django's build-in apps?
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
reinout@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment