Skip to content

Commit

Permalink
Use consistent string for central government
Browse files Browse the repository at this point in the history
  • Loading branch information
jimnarey committed Mar 8, 2024
1 parent bc006c9 commit f6d7118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions request_a_govuk_domain/request/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit f6d7118

Please sign in to comment.