Filter events by camp.

This commit is contained in:
Víðir Valberg Guðmundsson 2017-04-13 14:01:50 +02:00
parent 898f5aa3ef
commit ac39068e9b

View file

@ -23,7 +23,7 @@ from . import models
class ICSView(CampViewMixin, View): class ICSView(CampViewMixin, View):
def get(self, request, *args, **kwargs): 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) type_ = request.GET.get('type', None)
location = request.GET.get('location', None) location = request.GET.get('location', None)