Fix pagination bug and swapped file name with original file name.

This commit is contained in:
Nicholas Staples
2016-03-16 16:47:18 +00:00
parent 1425290eef
commit c3a15f9f30
2 changed files with 16 additions and 12 deletions

View File

@@ -171,8 +171,8 @@ 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)
template = fields.Nested(TemplateSchema, only=["id", "name", "template_type"], dump_only=True)
job = fields.Nested(JobSchema, only=["id", "original_file_name"], dump_only=True)
class Meta:
model = models.Notification