diff --git a/request_a_govuk_domain/request/views.py b/request_a_govuk_domain/request/views.py index 6868bede..804b2751 100644 --- a/request_a_govuk_domain/request/views.py +++ b/request_a_govuk_domain/request/views.py @@ -19,7 +19,7 @@ RegistryDetailsForm, WrittenPermissionForm, ) -from .models import RegistrationData + from django.views.generic.edit import FormView from .utils import handle_uploaded_file @@ -237,13 +237,7 @@ def get_context_data(self, **kwargs): return context def form_valid(self, form): - registration_data = self.request.session.get("registration_data", {}) - - # Save data to the database - RegistrationData.objects.create( - registrant_full_name=registration_data["registrant_full_name"], - registrant_email_address=registration_data["registrant_email_address"], - ) + # registration_data = self.request.session.get("registration_data", {}) # Clear session data after saving self.request.session.pop("registration_data", None)