Add ability for admins to change user passwords
authorSiobhan Tully <stully@verivue.com>
Sun, 12 Jan 2014 15:35:11 +0000 (10:35 -0500)
committerSiobhan Tully <stully@verivue.com>
Sun, 12 Jan 2014 15:35:11 +0000 (10:35 -0500)
planetstack/core/admin.py

index d229a17..fcc9485 100644 (file)
@@ -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= '<a href=\"password/\">Change Password</a>.')
 
     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"