Commit 72ca2138 authored by Jelle Besseling's avatar Jelle Besseling
Browse files

Merge branch 'fix/events-cards-ordering' into 'master'

Fix order and showing of events cards

See merge request !1244
parents ae180f9f 191ea61e
......@@ -12,8 +12,9 @@ def render_event_cards(context, events=None):
if events is None:
events = Event.objects.filter(
published=True,
start__lte=timezone.now() + timezone.timedelta(hours=24),
end__gte=timezone.now()
).order_by('end')[:6]
).order_by('start')[:6]
try:
cards = [{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment