include now
This commit is contained in:
parent
5f0c52aeae
commit
25db5b2868
|
@ -28,7 +28,7 @@ def index(request):
|
|||
display_events = ['news', 'events']
|
||||
base = Content.objects.filter(type__name__in=display_events).order_by('-datestart')
|
||||
base = base.filter(published=True)
|
||||
upcoming_events = base.filter(datestart__gt=now)[:12]
|
||||
upcoming_events = base.filter(datestart__gte=now)[:12]
|
||||
ongoing_events = base.filter(datestart__lt=now, dateend__gte=now)[:12]
|
||||
past_events = base.filter(Q(dateend__lt=now) | Q(dateend=None, datestart__lt=now))[:12]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user