Emergency service instead of emergency services

This commit is contained in:
Pea Tyczynska
2019-07-15 16:28:54 +01:00
parent 8a3ac8400f
commit e4cb56b5d3
5 changed files with 13 additions and 7 deletions

View File

@@ -326,9 +326,9 @@ class Domain(db.Model):
ORGANISATION_TYPES = [
"central", "local", "nhs_central",
"nhs_local", "emergency_services", "school_or_college", "other",
"nhs_local", "emergency_service", "school_or_college", "other",
]
NON_CROWN_ORGANISATION_TYPES = ["local", "nhs_central", "nhs_local", "emergency_services", "school_or_college"]
NON_CROWN_ORGANISATION_TYPES = ["local", "nhs_central", "nhs_local", "emergency_service", "school_or_college"]
class OrganisationTypes(db.Model):

View File

@@ -8,7 +8,7 @@ post_create_organisation_schema = {
"properties": {
"name": {"type": "string"},
"active": {"type": ["boolean", "null"]},
"crown": {"type": ["boolean", "null"]},
"crown": {"type": "boolean"},
"organisation_type": {"enum": ORGANISATION_TYPES},
},
"required": ["name", "crown", "organisation_type"]