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.
Is there a way to intercept the password change action ?
Thanks
--
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