gruppe sicherstellen
This commit is contained in:
parent
670c937b83
commit
059a19ba3a
|
|
@ -223,6 +223,11 @@ def NCAddUser(request):
|
|||
for g in user.groups.all():
|
||||
groups.append(AgencyGroup.objects.get(group=g).nc_name)
|
||||
|
||||
# Die gruppe Mitarbeiter holen und ebenfalls hinzufügen
|
||||
ag_mitarbeiter = AgencyGroup.objects.filter(agency=user.profile.agency, agencygroupname="Mitarbeiter").first().nc_name
|
||||
|
||||
groups.append(ag_mitarbeiter)
|
||||
|
||||
#password = get_random_password(50)
|
||||
password = ""
|
||||
userid = user.username
|
||||
|
|
|
|||
Loading…
Reference in New Issue