diff --git a/at_django_boilerplate/communications/__pycache__/urls.cpython-312.pyc b/at_django_boilerplate/communications/__pycache__/urls.cpython-312.pyc index 524b5e3..cb337db 100644 Binary files a/at_django_boilerplate/communications/__pycache__/urls.cpython-312.pyc and b/at_django_boilerplate/communications/__pycache__/urls.cpython-312.pyc differ diff --git a/at_django_boilerplate/communications/__pycache__/views.cpython-312.pyc b/at_django_boilerplate/communications/__pycache__/views.cpython-312.pyc index 7a271b7..b6073b2 100644 Binary files a/at_django_boilerplate/communications/__pycache__/views.cpython-312.pyc and b/at_django_boilerplate/communications/__pycache__/views.cpython-312.pyc differ diff --git a/at_django_boilerplate/communications/templates/ticket.html b/at_django_boilerplate/communications/templates/ticket.html new file mode 100644 index 0000000..e69de29 diff --git a/at_django_boilerplate/communications/urls.py b/at_django_boilerplate/communications/urls.py index 44f80aa..67e037a 100755 --- a/at_django_boilerplate/communications/urls.py +++ b/at_django_boilerplate/communications/urls.py @@ -4,4 +4,5 @@ from . import views urlpatterns = [ path('contact/', views.ContactView.as_view(), name='contact_us_form'), path('book-appointment/', views.AppointmentView.as_view(), name='book_appointment'), + path('ticket/', views.Ticket.as_view(), name='ticket'), ] \ No newline at end of file diff --git a/at_django_boilerplate/communications/views.py b/at_django_boilerplate/communications/views.py index 7a52bdc..db10298 100755 --- a/at_django_boilerplate/communications/views.py +++ b/at_django_boilerplate/communications/views.py @@ -8,7 +8,7 @@ from django.utils import timezone # Ensure this is imported from at_django_boilerplate.accounts.models import CustomUser from at_django_boilerplate.communications.models import FeedbackModel, AppointmentModel from at_django_boilerplate.backend_admin.models import SEOConfiguration - +from django.views.generic import TemplateView class ContactView(View): template_name = 'contact_us_form.html' @@ -187,4 +187,10 @@ Please confirm or follow up with the user. ) # Redirect to same page to show success message and prevent resubmission - return redirect('book_appointment') \ No newline at end of file + return redirect('book_appointment') + + + +class Ticket(TemplateView): + template_name = 'ticket.html' +