mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
notify-admin-762 fix tests
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -18,11 +18,9 @@
|
||||
|
||||
{{ form.name(param_extensions={"hint": {"text": "You can change this later"}}) }}
|
||||
|
||||
<!--See add_service.py the default_organization_type is not currently useful for Notify.gov
|
||||
and here it is causing an issue where services can't be created -->
|
||||
<!--{% if not default_organization_type %}-->
|
||||
<!--{% if not default_organization_type %}
|
||||
{{ form.organization_type }}
|
||||
<!--{% endif %}-->
|
||||
{% endif %}-->
|
||||
|
||||
{{ page_footer('Add service') }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user