EventSerializer field fixes

This commit is contained in:
Qwann 2017-07-25 19:00:12 +02:00
parent d19e5978b6
commit be5a90cf67

View file

@ -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