From f84087cd634eab205f912fcfabb88210b240d07c Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Tue, 11 Sep 2018 16:52:56 +0100 Subject: [PATCH] For the NotificationWithTemplateSchema exclude the scheduled_notifications so we do not query that table. The scheduled_notifications is not used as of yet. --- app/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/schemas.py b/app/schemas.py index ceb17bedb..5692b78f8 100644 --- a/app/schemas.py +++ b/app/schemas.py @@ -449,7 +449,7 @@ class NotificationWithTemplateSchema(BaseSchema): class Meta: model = models.Notification strict = True - exclude = ('_personalisation', ) + exclude = ('_personalisation', 'scheduled_notification') template = fields.Nested( TemplateSchema,