Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
191ea61e
Verified
Commit
191ea61e
authored
Apr 29, 2019
by
Sébastiaan Versteeg
Browse files
Fix order of events cards
parent
ae180f9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/templatetags/event_cards.py
View file @
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
=
[{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment