diff --git a/request_a_govuk_domain/request/views.py b/request_a_govuk_domain/request/views.py index 804b2751..d62b7574 100644 --- a/request_a_govuk_domain/request/views.py +++ b/request_a_govuk_domain/request/views.py @@ -97,7 +97,7 @@ def form_valid(self, form): registration_data["domain_name"] = form.cleaned_data["domain_name"] self.request.session["registration_data"] = registration_data - if registration_data["registrant_type"] == "central_gov": + if registration_data["registrant_type"] == "central_government": self.success_url = reverse_lazy("minister") else: self.success_url = reverse_lazy("applicant_details") @@ -198,7 +198,7 @@ def form_valid(self, form): "registrant_organisation_name" ] self.request.session["registration_data"] = registration_data - if registration_data["registrant_type"] == "central_gov": + if registration_data["registrant_type"] == "central_government": self.success_url = reverse_lazy("domain_purpose") return super().form_valid(form)