mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Update schemas to return more details about the job and template for notifications.
This commit is contained in:
@@ -171,6 +171,9 @@ class SmsAdminNotificationSchema(SmsNotificationSchema):
|
||||
|
||||
class NotificationStatusSchema(BaseSchema):
|
||||
|
||||
template = fields.Nested(TemplateSchema, only=["id", "name"], dump_only=True)
|
||||
job = fields.Nested(JobSchema, only=["id", "file_name"], dump_only=True)
|
||||
|
||||
class Meta:
|
||||
model = models.Notification
|
||||
|
||||
|
||||
Reference in New Issue
Block a user