mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 05:28:49 -04:00
initial
This commit is contained in:
@@ -64,7 +64,9 @@ def get_notification_by_id(notification_id):
|
||||
schema = PublicNotificationResponseSchema()
|
||||
schema.context = {
|
||||
"notification_instance": notification,
|
||||
"template_subject": getattr(template, "subject", None) if hasattr(template, "subject") else None
|
||||
"template_subject": (
|
||||
getattr(template, "subject", None) if hasattr(template, "subject") else None
|
||||
),
|
||||
}
|
||||
serialized = schema.dump(notification)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user