Commit 12eb2fdf authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Add member list and pk retrieve api

parent ad6e2f26
......@@ -51,4 +51,4 @@ class MemberSerializer(serializers.ModelSerializer):
class Meta:
model = Member
fields = ('display_name', 'photo')
fields = ('pk', 'display_name', 'photo')
......@@ -12,9 +12,10 @@ from members.api.serializers import MemberBirthdaySerializer, MemberSerializer
from members.models import Member
class MemberViewset(viewsets.ViewSet):
class MemberViewset(viewsets.ReadOnlyModelViewSet):
queryset = Member.objects.all()
permission_classes = (permissions.IsAuthenticated,)
serializer_class = MemberSerializer
def _get_birthdays(self, member, start, end):
birthdays = []
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