glasfaser: Fix email to parameter

This commit is contained in:
M.Ravi 2017-10-10 21:22:11 +02:00
parent c721d81075
commit 09f67e46b9

View file

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