Skip to content
GitLab
Menu
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
2f88a0b7
Verified
Commit
2f88a0b7
authored
Mar 11, 2020
by
Sébastiaan Versteeg
Browse files
Fix public events calendarjs API
parent
9be88633
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/api/serializers.py
View file @
2f88a0b7
...
...
@@ -83,7 +83,9 @@ class EventCalenderJSSerializer(CalenderJSSerializer):
def
_class_names
(
self
,
instance
):
class_names
=
[
"regular-event"
]
if
services
.
is_user_registered
(
self
.
context
[
"member"
],
instance
):
if
self
.
context
[
"member"
]
and
services
.
is_user_registered
(
self
.
context
[
"member"
],
instance
):
class_names
.
append
(
"has-registration"
)
return
class_names
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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