Remove possiblity to update user password
This commit is contained in:
parent
a242c505cc
commit
e3e700da84
|
@ -325,7 +325,7 @@ class Command(BaseCommand):
|
|||
else:
|
||||
modified = False
|
||||
for key in defaults:
|
||||
if getattr(user, key) != defaults[key]:
|
||||
if getattr(user, key) != defaults[key] and key != "password":
|
||||
setattr(user, key, defaults[key])
|
||||
modified = True
|
||||
if modified:
|
||||
|
|
Loading…
Reference in New Issue