added redirect after last step
This commit is contained in:
		
							parent
							
								
									11ee044008
								
							
						
					
					
						commit
						f6bdaa01d5
					
				|  | @ -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) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue