Unverified Commit bbbaaf2f authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Fix birthday calendar

parent 898611b6
......@@ -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):
......
......@@ -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)
......
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