mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-16 19:30:13 -04:00
Localize notification_utils to the admin
This changeset pulls in all of the notification_utils code directly into the admin and removes it as an external dependency. We are doing this to cut down on operational maintenance of the project and will begin removing parts of it no longer needed for the admin. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from abc import abstractmethod
|
||||
|
||||
from flask import abort
|
||||
|
||||
from notifications_utils.serialised_model import (
|
||||
SerialisedModel,
|
||||
SerialisedModelCollection,
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from notifications_utils.formatters import formatted_list
|
||||
|
||||
from app.formatters import format_thousands
|
||||
from app.models import ModelList
|
||||
from app.notify_client.service_api_client import service_api_client
|
||||
from notifications_utils.formatters import formatted_list
|
||||
|
||||
|
||||
class Event(ABC):
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from flask import abort, current_app
|
||||
from notifications_utils.serialised_model import SerialisedModelCollection
|
||||
from werkzeug.utils import cached_property
|
||||
|
||||
from app.models import JSONModel, SortByNameMixin
|
||||
@@ -15,6 +14,7 @@ from app.notify_client.organizations_api_client import organizations_client
|
||||
from app.notify_client.service_api_client import service_api_client
|
||||
from app.notify_client.template_folder_api_client import template_folder_api_client
|
||||
from app.utils import get_default_sms_sender
|
||||
from notifications_utils.serialised_model import SerialisedModelCollection
|
||||
|
||||
|
||||
class Service(JSONModel, SortByNameMixin):
|
||||
|
||||
Reference in New Issue
Block a user