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 @@
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 @@
# field does not have access to the initial value
return self.initial["password"]
-
class UserAdmin(UserAdmin):
class Meta:
app_label = "core"