trocken ist toll
This commit is contained in:
parent
e8c388d5fa
commit
b3be94e755
|
|
@ -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})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue