Add Change password functinality while editing a user via admin

site
This commit is contained in:
M.Ravi 2018-02-13 03:33:27 +01:00
parent 16add66ed8
commit abf316da9e

View file

@ -75,7 +75,15 @@ class CustomUserAdmin(BaseUserAdmin):
)
list_filter = ()
fieldsets = (
(None, {'fields': ('email', 'password')}),
(None, {'fields': ('email',)}),
('Change Password',
{'fields': ('password',),
'description': "Raw passwords are not stored, so there is no way to "
"see this user's password, but you can change the "
"password using <a href=\"../password/\">this "
"form</a>."
}
),
('Permissions', {'fields': ('is_admin', 'user_permissions',
'groups')}),
)