This commit is contained in:
Holger Trampe 2021-10-22 23:22:32 +02:00
parent 14015ea0e8
commit d47376c8df
2 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,7 @@
$(document).ready(function(){ $(document).ready(function(){
// FIRST CALL GROUPS, When Groups finished User will call by Groups // FIRST CALL GROUPS, When Groups finished User will call by Groups
createAgencyGroups(groupids[0]); //createAgencyGroups(groupids[0]);
//DEV //DEV
//rebuildingStandards(standards[0]); //rebuildingStandards(standards[0]);

View File

@ -710,7 +710,10 @@ 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:
if(ag_pk in g.name):
# GET AGENCY GROUP
agencygroupcheck = AgencyGroup.objects.get(group=g)
if(ag_pk in g.name and str(agencygroupcheck.agency.pk) == ag_pk):
ag_groups.append(g) ag_groups.append(g)
context.update({'groups' : ag_groups}) context.update({'groups' : ag_groups})