git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef01da
)
Add ability for admins to change user passwords
author
Siobhan Tully
<stully@verivue.com>
Sun, 12 Jan 2014 15:35:11 +0000
(10:35 -0500)
committer
Siobhan Tully
<stully@verivue.com>
Sun, 12 Jan 2014 15:35:11 +0000
(10:35 -0500)
planetstack/core/admin.py
patch
|
blob
|
history
diff --git
a/planetstack/core/admin.py
b/planetstack/core/admin.py
index
d229a17
..
fcc9485
100644
(file)
--- 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= '<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"