Fix channels consumer for program for the new content flow.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-05-20 19:32:51 +02:00
parent 039af44a92
commit 03b536ff26

View file

@ -34,11 +34,11 @@ class ScheduleConsumer(JsonWebsocketConsumer):
camp.get_days('camp') 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]) events = list([x.serialize() for x in events_query_set])
event_instances_query_set = EventInstance.objects.filter( event_instances_query_set = EventInstance.objects.filter(
event__camp=camp event__track__camp=camp
) )
event_instances = list([ event_instances = list([
x.serialize(user=user) x.serialize(user=user)