mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 14:42:24 -05:00
replace overeager deletion
This commit is contained in:
@@ -418,6 +418,12 @@ class TemplateSchemaNoDetail(TemplateSchema):
|
||||
'version',
|
||||
)
|
||||
|
||||
@pre_dump
|
||||
def remove_content_for_non_broadcast_templates(self, template, **kwargs):
|
||||
template.content = None
|
||||
|
||||
return template
|
||||
|
||||
|
||||
class TemplateHistorySchema(BaseSchema):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user