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
852844be
Commit
852844be
authored
Oct 26, 2016
by
Luuk Scholten
Browse files
Merge branch 'fix/birthdaycalendar' into 'master'
Fix birthday calendar See merge request
!143
parents
49c2cefc
bbbaaf2f
Changes
2
Show whitespace changes
Inline
Side-by-side
website/members/api/serializers.py
View file @
852844be
...
...
@@ -29,7 +29,7 @@ class MemberBirthdaySerializer(CalenderJSSerializer):
def
_description
(
self
,
instance
):
membership
=
instance
.
current_membership
if
membership
and
membership
.
type
==
'honorary'
:
return
instance
.
membership
.
get_type_display
()
return
membership
.
get_type_display
()
return
''
def
_background_color
(
self
,
instance
):
...
...
website/members/api/viewsets.py
View file @
852844be
...
...
@@ -44,7 +44,6 @@ class MemberViewset(viewsets.ViewSet):
.
with_birthdays_in_range
(
start
,
end
)
.
filter
(
show_birthday
=
True
)
)
queryset
.
prefetch_related
(
'membership_get'
)
all_birthdays
=
[
self
.
_get_birthdays
(
m
,
start
,
end
)
...
...
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