From ac39068e9b0b0e229a3a5d47c29bd6c594a9f65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Thu, 13 Apr 2017 14:01:50 +0200 Subject: [PATCH] Filter events by camp. --- src/program/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/program/views.py b/src/program/views.py index 6eecd0a6..3a084604 100644 --- a/src/program/views.py +++ b/src/program/views.py @@ -23,7 +23,7 @@ from . import models class ICSView(CampViewMixin, View): def get(self, request, *args, **kwargs): - eventinstances = models.EventInstance.objects.all() + eventinstances = models.EventInstance.objects.filter(event__camp=self.camp) type_ = request.GET.get('type', None) location = request.GET.get('location', None)