This commit is contained in:
j 2021-10-26 16:51:56 +01:00
commit f7a374877a
2 changed files with 5 additions and 0 deletions

View file

@ -15,6 +15,7 @@ def index(request):
to = settings.CONTACT_TO_EMAIL
msg = EmailMessage(subject, message, from_, to, reply_to=[form.cleaned_data['email']])
msg.send(fail_silently=True)
context['submitted'] = True
else:
context['form'] = form
return render(request, 'contact.html', context)