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:
Chris Hill-Scott
2019-07-01 17:01:11 +01:00
parent 0916b2ba6b
commit a6b3561cf7
2 changed files with 5 additions and 3 deletions

View File

@@ -596,10 +596,13 @@ class OrganisationTypeForm(StripWhitespaceForm):
class NewOrganisationForm(
RenameOrganisationForm,
OrganisationTypeForm,
OrganisationOrganisationTypeForm,
OrganisationCrownStatusForm,
):
pass
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# Dont offer the not sure choice
self.crown_status.choices = self.crown_status.choices[:-1]
class FreeSMSAllowance(StripWhitespaceForm):