From 63b7ba4526af1c9b57798b5c6635b8abd03e0ecb Mon Sep 17 00:00:00 2001 From: Siobhan Tully Date: Sun, 12 Jan 2014 10:35:11 -0500 Subject: [PATCH] Add ability for admins to change user passwords --- planetstack/core/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.47.0