From be5a90cf6739092335e2ef9fc6ebbd616a0eb7c4 Mon Sep 17 00:00:00 2001 From: Qwann Date: Tue, 25 Jul 2017 19:00:12 +0200 Subject: [PATCH] EventSerializer field fixes --- api/event/serializers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/event/serializers.py b/api/event/serializers.py index 183c39d..8cc80cf 100644 --- a/api/event/serializers.py +++ b/api/event/serializers.py @@ -5,7 +5,8 @@ from event.models import Event, ActivityTag, Place, ActivityTemplate # Event Serializer class EventSerializer(serializers.HyperlinkedModelSerializer): - created_by = serializers.ReadOnlyField(source='created_by.username') + created_by = serializers.ReadOnlyField(source='created_by.get_full_name') + creation_date = serializers.ReadOnlyField() class Meta: model = Event