This commit is contained in:
holger.trampe 2019-12-12 23:52:42 +01:00
parent 62151c5f03
commit 3347862c70
2 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class AgencyCreateView(CreateView):
agency.save()
newuser_name = form.cleaned_data.get('first_name') + ' ' + form.cleaned_data.get('last_name')
form.instance.agency = agency
form.instance.parent = None
form.instance.parent = self.request.user
msg_html = render_to_string('users/register_mail.html', {'username': newuser_name})
# E-Mail für Passwort-Setzung!
send_mail(