So I had a similar problem. When I tried to change the user password from admin, I got a url for "/ admin / accounts / siteuser / password /" (siteuser is the name of my user model) and a 404 error with this message: "User object with primary key u" password " does not exist." Research has shown that the problem is due to an error in django-authtools (1.4.0), since I used the NamedUserAdmin class to inherit.
So, the solution is also (if you need to inherit from any custom UserAdmin, such as NamedUserAdmin, from django-authtools):
from django.contrib.auth.forms import UserChangeForm from authtools.admin import NamedUserAdmin class SiteUserAdmin(NamedUserAdmin): ... form = UserChangeForm ...
or just inherit from the standard django UserAdmin:
from django.contrib.auth.admin import UserAdmin class SiteUserAdmin(UserAdmin): pass
source share