diff --git a/home/views.py b/home/views.py index 683a14d..96b1ae6 100644 --- a/home/views.py +++ b/home/views.py @@ -1,5 +1,6 @@ from django.views.generic import TemplateView, FormView from django.http import HttpResponse +from django.urls import reverse_lazy from ipware import get_client_ip from urllib import parse @@ -23,6 +24,7 @@ class ServiceView(TemplateView): class ContactView(FormView): template_name = 'home/contact.html' form_class = ContactForm + success_url = reverse_lazy("home:contact_valid") class ContactValidView(TemplateView):