From 4b8ab974dc62f01c969adc3e8735703f32517f9e Mon Sep 17 00:00:00 2001 From: James Murty Date: Mon, 19 Dec 2016 15:44:03 +1100 Subject: [PATCH] Do not show hidden event occurrences on event listing pages --- icekit_events/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icekit_events/models.py b/icekit_events/models.py index 5e4c4ab..00e0cf0 100644 --- a/icekit_events/models.py +++ b/icekit_events/models.py @@ -849,7 +849,7 @@ class Meta: def get_public_items(self, request): return Occurrence.objects.published()\ - .filter(event__show_in_calendar=True) + .filter(event__show_in_calendar=True, is_hidden=False) def get_visible_items(self, request): return Occurrence.objects.visible() @@ -882,7 +882,7 @@ def _occurrences_on_date(self, request): def get_items_to_list(self, request): return self._occurrences_on_date(request).published()\ - .filter(event__show_in_calendar=True) + .filter(event__show_in_calendar=True, is_hidden=False) def get_items_to_mount(self, request): return self._occurrences_on_date(request).visible()