0.7.3 Benutzerbug gefixed
This commit is contained in:
parent
25610e032f
commit
074ee8be72
Binary file not shown.
Binary file not shown.
|
|
@ -117,6 +117,7 @@ class UsersCreateUser(LoginRequiredMixin, CreateView):
|
|||
# SAVE OBJECTS TO SIGNALE!
|
||||
form.instance.agency = self.request.user.profile.agency
|
||||
form.instance.parent = None
|
||||
newuser_name = form.cleaned_data.get('first_name') + " " + form.cleaned_data.get('last_name')
|
||||
msg_html = render_to_string('users/newusers_email.html', {'username': newuser_name})
|
||||
if(self.request.POST.get("sendmailnewuser")):
|
||||
send_mail(
|
||||
|
|
@ -126,8 +127,7 @@ class UsersCreateUser(LoginRequiredMixin, CreateView):
|
|||
[form.cleaned_data.get('email')],
|
||||
html_message=msg_html,
|
||||
fail_silently=False,
|
||||
)
|
||||
newuser_name = form.cleaned_data.get('first_name') + " " + form.cleaned_data.get('last_name')
|
||||
)
|
||||
return super().form_valid(form)
|
||||
|
||||
# USER muss eingeloggt sein, um diese Seite zu sehen
|
||||
|
|
|
|||
Loading…
Reference in New Issue