Filter events by camp.
This commit is contained in:
parent
898f5aa3ef
commit
ac39068e9b
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue