From 5b5a83b4d566d9e21e0e1313ec91fcd214712250 Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Sat, 17 Jun 2023 21:38:38 +0200 Subject: [PATCH] =?UTF-8?q?Chyb=C4=9Bj=C3=ADc=C3=AD=20continue=20:-)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- personalni/management/commands/check_org_permissions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/personalni/management/commands/check_org_permissions.py b/personalni/management/commands/check_org_permissions.py index 4e937412..14f934a1 100644 --- a/personalni/management/commands/check_org_permissions.py +++ b/personalni/management/commands/check_org_permissions.py @@ -19,6 +19,7 @@ class Command(BaseCommand): orgove = m.Organizator.objects.filter(osoba__user=u) if orgove.count() != 1: nesparovani.add(u) + continue org = orgove.first() # Pokud už není aktivní, tak ho vypíšeme # Porovnáváme data, protože neřeší časové zóny (datetime.now není tz-aware)