From b31c45e0f52dc953dda5e7314a5a770d02e4bc7d Mon Sep 17 00:00:00 2001 From: Nell Date: Mon, 22 Jul 2024 10:40:15 +0200 Subject: [PATCH] init --- home/views.py | 2 ++ 1 file changed, 2 insertions(+) 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):