From dc5c44b901e779f65b3d707c4f0de346edd8c3a1 Mon Sep 17 00:00:00 2001 From: nanoy Date: Sun, 5 Sep 2021 12:48:05 +0000 Subject: [PATCH] Apply 2 suggestion(s) to 2 file(s) --- ldap_sync/management/commands/ldap_rebuild.py | 4 ++-- ldap_sync/management/commands/ldap_sync.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)