From e9bdb262678979259df739b6e48c0cfd4edde0ee Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Tue, 14 Apr 2015 22:01:30 +0200 Subject: [PATCH] Fixes overwriting of expires=0000-00-00 in copy hash script --- neuf_userinfo/management/commands/copy_hashes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neuf_userinfo/management/commands/copy_hashes.py b/neuf_userinfo/management/commands/copy_hashes.py index 23037ff..3ad4815 100644 --- a/neuf_userinfo/management/commands/copy_hashes.py +++ b/neuf_userinfo/management/commands/copy_hashes.py @@ -15,4 +15,4 @@ class Command(BaseCommand): ldap_password = ldap_user_passwords.get(u.ldap_username) if ldap_password is not None: u.ldap_password = ldap_password - u.save() + u.save(update_fields=['ldap_password'])