Extract user utility code into own module

This provides more room for expansion, and reduces the amount of
arbitrary code in the __init__.py file for the new package.
This commit is contained in:
Ben Thorner
2021-06-09 13:19:05 +01:00
parent 3f55c746aa
commit 7c27646d6a
34 changed files with 108 additions and 105 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ from app import service_api_client
from app.formatters import email_safe
from app.main import main
from app.main.forms import CreateNhsServiceForm, CreateServiceForm
from app.utils import user_is_gov_user, user_is_logged_in
from app.utils.user import user_is_gov_user, user_is_logged_in
def _create_service(service_name, organisation_type, email_from, form):