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_groups = []
for g in groups:
# GET AGENCY GROUP
agencygroupcheck = AgencyGroup.objects.filter(group=g).first()
if(ag_pk in g.name and str(agencygroupcheck.agency.pk) == ag_pk):
ag_groups.append(g)
#gencygroupcheck = AgencyGroup.objects.get(group=g.id)
for ag_group_agency in AgencyGroup.objects.filter(group=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})