Return hidden field as part of json for notification by id

- required by Admin app so that it can distinguish between created and precompiled letters
This commit is contained in:
Ken Tsang
2018-03-02 13:43:27 +00:00
parent d7823fdbd6
commit ee9b6f1fe0
3 changed files with 46 additions and 8 deletions

View File

@@ -454,7 +454,7 @@ class NotificationWithTemplateSchema(BaseSchema):
template = fields.Nested(
TemplateSchema,
only=['id', 'version', 'name', 'template_type', 'content', 'subject', 'redact_personalisation'],
only=['id', 'version', 'name', 'template_type', 'content', 'subject', 'redact_personalisation', 'hidden'],
dump_only=True
)
job = fields.Nested(JobSchema, only=["id", "original_file_name"], dump_only=True)