Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Do not show hidden event occurrences on event listing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurty committed Dec 19, 2016
1 parent dac0352 commit 4b8ab97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icekit_events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 4b8ab97

Please sign in to comment.