gruppenbug

This commit is contained in:
Holger Trampe 2021-10-23 18:00:17 +02:00
parent abb974d0bc
commit a8e3779a2c
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ def NCAddUser(request):
groups.append(AgencyGroup.objects.get(group=g).nc_name) groups.append(AgencyGroup.objects.get(group=g).nc_name)
# Die gruppe Mitarbeiter holen und ebenfalls hinzufügen # Die gruppe Mitarbeiter holen und ebenfalls hinzufügen
#ag_mitarbeiter = AgencyGroup.objects.filter(agency=user.profile.agency, agencygroupname="Mitarbeiter").first().nc_name ag_mitarbeiter = AgencyGroup.objects.filter(agency=user.profile.agency, agencygroupname="Mitarbeiter").first()
ag_mitarbeiter.group.user_set.add(user)
groups.append("agencymaingroupid_" + str(user.profile.agency.pk)) groups.append("agencymaingroupid_" + str(user.profile.agency.pk))