diff --git a/ldap_sync/management/commands/ldap_rebuild.py b/ldap_sync/management/commands/ldap_rebuild.py index f1cb2728..9b958d37 100644 --- a/ldap_sync/management/commands/ldap_rebuild.py +++ b/ldap_sync/management/commands/ldap_rebuild.py @@ -94,8 +94,8 @@ def sync_ldap(): synchronise_user(sender=User, instance=u) for lr in ListRight.objects.all(): synchronise_usergroup(sender=ListRight, instance=lr) - for s in ServiceUser.objects.all(): - synchronise_serviceuser(sender=ServiceUser, instance=s) + for service_user in ServiceUser.objects.all(): + synchronise_serviceuser(sender=ServiceUser, instance=service_user) class Command(BaseCommand): diff --git a/ldap_sync/management/commands/ldap_sync.py b/ldap_sync/management/commands/ldap_sync.py index e2d7dc22..4d2c80de 100644 --- a/ldap_sync/management/commands/ldap_sync.py +++ b/ldap_sync/management/commands/ldap_sync.py @@ -42,5 +42,5 @@ class Command(BaseCommand): synchronise_user(sender=User, instance=user) for lr in ListRight.objects.all(): synchronise_usergroup(sender=ListRight, instance=lr) - for s in ServiceUser.objects.all(): - synchronise_serviceuser(sender=ServiceUser, instance=s) + for service_user in ServiceUser.objects.all(): + synchronise_serviceuser(sender=ServiceUser, instance=service_user)