mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-25 10:29:34 -04:00
Merge pull request #1384 from alphagov/notifications-template-history
Fix notifications template history relationship
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user