trocken ist toll

This commit is contained in:
Holger Trampe 2021-10-22 23:32:36 +02:00
parent e8c388d5fa
commit b3be94e755
1 changed files with 4 additions and 4 deletions

View File

@ -710,11 +710,11 @@ class AdmImportFlow(TemplateView):
ag_pk = str(agency.pk) ag_pk = str(agency.pk)
ag_groups = [] ag_groups = []
for g in groups: for g in groups:
# GET AGENCY GROUP # GET AGENCY GROUP
agencygroupcheck = AgencyGroup.objects.filter(group=g).first() #gencygroupcheck = AgencyGroup.objects.get(group=g.id)
if(ag_pk in g.name and str(agencygroupcheck.agency.pk) == ag_pk): for ag_group_agency in AgencyGroup.objects.filter(group=g):
ag_groups.append(g) if(ag_pk in g.name and str(ag_group_agency.agency.pk) == ag_pk):
ag_groups.append(g)
context.update({'groups' : ag_groups}) context.update({'groups' : ag_groups})