From 03b536ff26a4c0eb87816d7e7d47af0a1579f157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sun, 20 May 2018 19:32:51 +0200 Subject: [PATCH] Fix channels consumer for program for the new content flow. --- src/program/consumers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/program/consumers.py b/src/program/consumers.py index a8db84ef..c325a0df 100644 --- a/src/program/consumers.py +++ b/src/program/consumers.py @@ -34,11 +34,11 @@ class ScheduleConsumer(JsonWebsocketConsumer): camp.get_days('camp') )) - events_query_set = Event.objects.filter(camp=camp) + events_query_set = Event.objects.filter(track__camp=camp) events = list([x.serialize() for x in events_query_set]) event_instances_query_set = EventInstance.objects.filter( - event__camp=camp + event__track__camp=camp ) event_instances = list([ x.serialize(user=user)