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
cd74fae1
Commit
cd74fae1
authored
May 29, 2019
by
Luko van der Maas
Browse files
Merge branch 'fix/event-cards-filter' into 'master'
Fix filter of events cards See merge request
!1276
parents
3ee093de
5ef5112a
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/templatetags/event_cards.py
View file @
cd74fae1
...
@@ -12,7 +12,7 @@ def render_event_cards(context, events=None):
...
@@ -12,7 +12,7 @@ def render_event_cards(context, events=None):
if
events
is
None
:
if
events
is
None
:
events
=
Event
.
objects
.
filter
(
events
=
Event
.
objects
.
filter
(
published
=
True
,
published
=
True
,
start__
l
te
=
timezone
.
now
()
+
timezone
.
timedelta
(
hours
=
24
),
start__
g
te
=
timezone
.
now
()
-
timezone
.
timedelta
(
hours
=
24
),
end__gte
=
timezone
.
now
()
end__gte
=
timezone
.
now
()
).
order_by
(
'start'
)[:
6
]
).
order_by
(
'start'
)[:
6
]
...
...
Luko van der Maas
@lukomaas
mentioned in commit
a6d28c9b
·
May 30, 2019
mentioned in commit
a6d28c9b
mentioned in commit a6d28c9b06f7b4d724f1e0148beaa9fb0301480d
Toggle commit list
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