Merge pull request #1384 from alphagov/notifications-template-history

Fix notifications template history relationship
This commit is contained in:
Alexey Bezhan
2017-11-15 10:51:56 +00:00
committed by GitHub
14 changed files with 155 additions and 49 deletions

View File

@@ -471,7 +471,7 @@ class NotificationWithTemplateSchema(BaseSchema):
class NotificationWithPersonalisationSchema(NotificationWithTemplateSchema):
template_history = fields.Nested(TemplateHistorySchema,
template_history = fields.Nested(TemplateHistorySchema, attribute="template",
only=['id', 'name', 'template_type', 'content', 'subject', 'version'],
dump_only=True)