Skip to content

Commit

Permalink
Support #286
Browse files Browse the repository at this point in the history
  • Loading branch information
nutjob4life committed Sep 14, 2023
1 parent eb7b7cc commit add52a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edrn.collabgroups/src/edrn/collabgroups/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def get_context(self, request: HttpRequest, *args, **kwargs) -> dict:
future = CommitteeEvent.objects.child_of(self).filter(when__gte=now).live().order_by('-when')
past = CommitteeEvent.objects.child_of(self).filter(when__lte=now).live().order_by('-when')
have_events = future.count() > 0 or past.count() > 0
docs = self.get_children().exclude(content_type=event_content_type).live().all().order_by('last_published_at')
docs = self.get_children().exclude(content_type=event_content_type).live().all()

context['future_events'], context['past_events'], context['have_events'] = future, past, have_events
context['documents'] = docs
Expand Down

0 comments on commit add52a3

Please sign in to comment.