From: Siobhan Tully Date: Sun, 12 Jan 2014 15:35:11 +0000 (-0500) Subject: Add ability for admins to change user passwords X-Git-Url: http://git.onelab.eu/?p=plstackapi.git;a=commitdiff_plain;h=63b7ba4526af1c9b57798b5c6635b8abd03e0ecb Add ability for admins to change user passwords --- diff --git a/planetstack/core/admin.py b/planetstack/core/admin.py index d229a17..fcc9485 100644 --- a/planetstack/core/admin.py +++ b/planetstack/core/admin.py @@ -786,7 +786,8 @@ class UserChangeForm(forms.ModelForm): the user, but replaces the password field with admin's password hash display field. """ - password = ReadOnlyPasswordHashField() + password = ReadOnlyPasswordHashField(label='Password', + help_text= 'Change Password.') class Meta: model = User @@ -797,7 +798,6 @@ class UserChangeForm(forms.ModelForm): # field does not have access to the initial value return self.initial["password"] - class UserAdmin(UserAdmin): class Meta: app_label = "core"