For the NotificationWithTemplateSchema exclude the scheduled_notifications so we do not query that table.

The scheduled_notifications is not used as of yet.
This commit is contained in:
Rebecca Law
2018-09-11 16:52:56 +01:00
parent 39b90f0b78
commit f84087cd63

View File

@@ -449,7 +449,7 @@ class NotificationWithTemplateSchema(BaseSchema):
class Meta:
model = models.Notification
strict = True
exclude = ('_personalisation', )
exclude = ('_personalisation', 'scheduled_notification')
template = fields.Nested(
TemplateSchema,