mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
rename template.serialize to serialize_for_v2
make it clear that this is for the public api, and we shouldn't add fields to it without considering impacts also add the broadcast_messages relationship on service and template to the exclude from the marshmallow schemas, so it's not included elsewhere
This commit is contained in:
@@ -260,6 +260,7 @@ class ServiceSchema(BaseSchema, UUIDsAsStringsMixin):
|
||||
'users',
|
||||
'version',
|
||||
'whitelist',
|
||||
'broadcast_messages',
|
||||
)
|
||||
strict = True
|
||||
|
||||
@@ -326,6 +327,7 @@ class DetailedServiceSchema(BaseSchema):
|
||||
'users',
|
||||
'version',
|
||||
'whitelist',
|
||||
'broadcast_messages',
|
||||
)
|
||||
|
||||
|
||||
@@ -350,7 +352,7 @@ class BaseTemplateSchema(BaseSchema):
|
||||
|
||||
class Meta:
|
||||
model = models.Template
|
||||
exclude = ("service_id", "jobs", "service_letter_contact_id")
|
||||
exclude = ("service_id", "jobs", "service_letter_contact_id", "broadcast_messages")
|
||||
strict = True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user