diff --git a/app/schemas.py b/app/schemas.py index e689bf83f..13bf10120 100644 --- a/app/schemas.py +++ b/app/schemas.py @@ -450,7 +450,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)