op text sections added, from email fixed

This commit is contained in:
Arvind Tiwari 2017-10-10 20:58:11 +05:30
commit 0616be9864
4 changed files with 112 additions and 32 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')],