mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 17:38:50 -04:00
Don’t create new organisations with no crown status
We need the crown status set so that we can let them accept the agreement online.
This commit is contained in:
@@ -596,10 +596,13 @@ class OrganisationTypeForm(StripWhitespaceForm):
|
||||
|
||||
class NewOrganisationForm(
|
||||
RenameOrganisationForm,
|
||||
OrganisationTypeForm,
|
||||
OrganisationOrganisationTypeForm,
|
||||
OrganisationCrownStatusForm,
|
||||
):
|
||||
pass
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
# Don’t offer the ‘not sure’ choice
|
||||
self.crown_status.choices = self.crown_status.choices[:-1]
|
||||
|
||||
|
||||
class FreeSMSAllowance(StripWhitespaceForm):
|
||||
|
||||
@@ -93,7 +93,6 @@ def test_page_to_create_new_organisation(
|
||||
('radio', 'organisation_type', 'nhs'),
|
||||
('radio', 'crown_status', 'crown'),
|
||||
('radio', 'crown_status', 'non-crown'),
|
||||
('radio', 'crown_status', 'unknown'),
|
||||
('hidden', 'csrf_token', ANY),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user