Merge remote-tracking branch 'mainRepo/master' into task/3829/handle_landing_login_fail_in_same_page

This commit is contained in:
M.Ravi 2017-10-10 19:22:37 +02:00
commit 1c67d66ff7
34 changed files with 1095 additions and 1612 deletions

View file

@ -55,7 +55,9 @@ class ContactUsView(FormView):
sender=form.cleaned_data.get('email')
),
'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,
'to': ['info@ungleich.ch'],
'to': '{}@ungleich.ch'.format(
self.request.POST.get('from_page', 'info')
),
'body': "\n".join(
["%s=%s" % (k, v) for (k, v) in form.cleaned_data.items()]),
'reply_to': [form.cleaned_data.get('email')],