Merge pull request #784 from GSA/notify-admin-769

notify-admin-652 create new service does not work in demo
This commit is contained in:
Carlo Costino
2023-09-21 11:48:46 -04:00
committed by GitHub
3 changed files with 10 additions and 36 deletions

View File

@@ -45,10 +45,11 @@ def _create_example_template(service_id):
@user_is_gov_user
def add_service():
default_organization_type = current_user.default_organization_type
if default_organization_type is None:
default_organization_type = "federal"
form = CreateServiceForm(
# avoid setting a default for now; the US gov email addresses aren't as useful as the UK
# ones for guessing the org type
organization_type=None
# This value is currently not useful but if it is not set it will result in a bug
organization_type=default_organization_type
)
if form.validate_on_submit():

View File

@@ -18,9 +18,9 @@
{{ form.name(param_extensions={"hint": {"text": "You can change this later"}}) }}
{% if not default_organization_type %}
<!--{% if not default_organization_type %}
{{ form.organization_type }}
{% endif %}
{% endif %}-->
{{ page_footer('Add service') }}