chol
/
eva
forked from tohe/eva
1
0
Fork 0

added redirect after last step

This commit is contained in:
Benni Bärmann 2021-01-14 09:37:45 +01:00
parent 11ee044008
commit f6bdaa01d5
1 changed files with 3 additions and 5 deletions

View File

@ -2,7 +2,7 @@ from smtplib import SMTPException
from django.views.generic.edit import CreateView
from django.urls import reverse
from django.http import HttpResponse
from django.http import HttpResponse, HttpResponseRedirect
from django.core.mail import send_mail, BadHeaderError
from django.template.loader import get_template
from formtools.wizard.views import CookieWizardView
@ -70,8 +70,6 @@ class EvaFormView(CookieWizardView):
print(form_data)
for dep in MAILS:
send_mail_to_department(dep, form_data)
return render(self.request, 'evapp/dataloop.txt', {
'data': form_data,
})
return HttpResponseRedirect('success')
return super().form_valid(form)
# return super().form_valid(form)