#16728: Registering custom Admin class for User model breaks changing passwords -------------------------------+------------------------------- Reporter: django.bigfudge@… | Owner: nobody Type: Bug | Status: new Milestone: | Component: contrib.admin Version: 1.3 | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------+------------------------------- I am doing this:
class UserProfileInline(admin.StackedInline): model = UserProfile class UserAdmin(admin.ModelAdmin): save_on_top = True inlines = [UserProfileInline] admin.site.unregister(User) admin.site.register(User, UserAdmin) To allow me to edit UserProfiles inline with Users. However, doing this seems to break the password reset feature within django admin (not the user-facing password reset – the one on the User model itself which allows and administrator to set a user's password manually. The error is: user object with primary key u'3/password' does not exist. -- Ticket URL: <https://code.djangoproject.com/ticket/16728> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.