EventSerializer field fixes
This commit is contained in:
parent
d19e5978b6
commit
be5a90cf67
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue