From d59edea60649e92bbf1bbda3e41dd1c45a0fb8c8 Mon Sep 17 00:00:00 2001 From: Ryan Merolle Date: Fri, 8 Apr 2022 14:00:05 -0400 Subject: [PATCH] Update 040_tenant_groups.py black updates --- startup_scripts/040_tenant_groups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/startup_scripts/040_tenant_groups.py b/startup_scripts/040_tenant_groups.py index 5a80d7e..6e82668 100644 --- a/startup_scripts/040_tenant_groups.py +++ b/startup_scripts/040_tenant_groups.py @@ -9,14 +9,14 @@ if tenant_groups is None: sys.exit() optional_assocs = { - 'parent': (TenantGroup, 'name'), + 'parent': (TenantGroup, "name"), } for params in tenant_groups: for assoc, details in optional_assocs.items(): if assoc in params: model, field = details - query = { field: params.pop(assoc) } + query = {field: params.pop(assoc)} params[assoc] = model.objects.get(**query) tenant_group, created = TenantGroup.objects.get_or_create(**params)