Skip to content

Commit

Permalink
Fix blank attributes not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
jbittel committed May 26, 2016
1 parent d7af5ce commit c19614f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldap_sync/management/commands/syncldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def sync_ldap_users(self, ldap_users):
else:
for name, attr in defaults.items():
current_attr = getattr(user, name, None)
if current_attr and current_attr != attr:
if current_attr != attr:
setattr(user, name, attr)
updated = True
if updated:
Expand Down

0 comments on commit c19614f

Please sign in to comment.