mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 14:48:24 -04:00
Extract formatters into their own module
We have lots of functions for converting various types of data into strings to be displayed to the user somewhere. This commit collects all these functions into their own module, rather than having them cluttering up `app/__init__.py` or buried amongst various other things that have ended up in `app/utils.py`.
This commit is contained in:
@@ -16,6 +16,7 @@ from app.event_handlers import (
|
||||
create_mobile_number_change_event,
|
||||
create_remove_user_from_service_event,
|
||||
)
|
||||
from app.formatters import redact_mobile_number
|
||||
from app.main import main
|
||||
from app.main.forms import (
|
||||
BroadcastInviteUserForm,
|
||||
@@ -29,7 +30,7 @@ from app.main.forms import (
|
||||
)
|
||||
from app.models.roles_and_permissions import broadcast_permissions, permissions
|
||||
from app.models.user import InvitedUser, User
|
||||
from app.utils import is_gov_user, redact_mobile_number, user_has_permissions
|
||||
from app.utils import is_gov_user, user_has_permissions
|
||||
|
||||
|
||||
@main.route("/services/<uuid:service_id>/users")
|
||||
|
||||
Reference in New Issue
Block a user