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_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})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue