diff --git a/site/ic_data_repo/config/settings.py b/site/ic_data_repo/config/settings.py index 790835e..fea3efe 100644 --- a/site/ic_data_repo/config/settings.py +++ b/site/ic_data_repo/config/settings.py @@ -12,7 +12,7 @@ from invenio_oauthclient.views.client import auto_redirect_login from .custom_fields import * # noqa: F401,F403 -from .utils import get_user +from .utils import get_user_form_default # Flask # ===== @@ -114,7 +114,7 @@ } ], "publisher": "Imperial College London", - "creators": lambda: get_user(), + "creators": lambda: get_user_form_default(), } # See: diff --git a/site/ic_data_repo/config/utils.py b/site/ic_data_repo/config/utils.py index 27207fe..27e2fa1 100644 --- a/site/ic_data_repo/config/utils.py +++ b/site/ic_data_repo/config/utils.py @@ -1,11 +1,11 @@ """Utilities for settings.""" -from typing import Any, List, Optional +from typing import Any, List from flask_login import current_user -def get_user() -> Optional[List[dict[str, Any]]]: +def get_user_form_default() -> List[dict[str, Any]]: """Format the current user profile for the submission form. The default user profile schema has two string properties;