diff --git a/adm/views.py b/adm/views.py index 80ec81f..73ce0f9 100644 --- a/adm/views.py +++ b/adm/views.py @@ -712,7 +712,7 @@ class AdmImportFlow(TemplateView): for g in groups: # GET AGENCY GROUP - agencygroupcheck = AgencyGroup.objects.get(group=g) + agencygroupcheck = AgencyGroup.objects.filter(group=g).first() if(ag_pk in g.name and str(agencygroupcheck.agency.pk) == ag_pk): ag_groups.append(g)