Merge pull request #2955 from alphagov/auto-nhs-org-type

Set org type to NHS if user has NHS email address
This commit is contained in:
Chris Hill-Scott
2019-05-15 16:26:23 +01:00
committed by GitHub
4 changed files with 89 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ def _create_example_template(service_id):
@user_is_gov_user
def add_service():
form = CreateServiceForm(
organisation_type=current_user.default_organisation.organisation_type
organisation_type=current_user.default_organisation_type
)
heading = 'About your service'
@@ -58,7 +58,7 @@ def add_service():
service_id, error = _create_service(
service_name,
current_user.default_organisation.organisation_type or form.organisation_type.data,
current_user.default_organisation_type or form.organisation_type.data,
email_from,
form,
)