Update schemas to return more details about the job and template for notifications.

This commit is contained in:
Nicholas Staples
2016-03-15 14:24:10 +00:00
parent 0be235e551
commit 356083e8ac
2 changed files with 9 additions and 2 deletions

View File

@@ -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