|
@@ -148,7 +148,7 @@ class Member(CoinLdapSyncMixin, AbstractUser):
|
|
|
# Do not perform LDAP query if no usefull fields to update are specified
|
|
|
# in update_fields
|
|
|
# Ex : at login, last_login field is updated by django auth module.
|
|
|
- if set(['username', 'last_name', 'first_name']).isdisjoint(set(update_fields)):
|
|
|
+ if update_fields and set(['username', 'last_name', 'first_name']).isdisjoint(set(update_fields)):
|
|
|
return
|
|
|
|
|
|
# Fail if no username specified
|