creation_date field updated

This commit is contained in:
Qwann 2017-07-27 12:04:30 +02:00
parent 7bec90d7a4
commit c9cdc67b4f

View file

@ -6,11 +6,11 @@ from event.models import Event, ActivityTag, Place, ActivityTemplate
# Event Serializer
class EventSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.ReadOnlyField(source='created_by.get_full_name')
creation_date = serializers.ReadOnlyField()
created_at = serializers.ReadOnlyField()
class Meta:
model = Event
fields = ('url', 'id', 'title', 'slug', 'created_by', 'creation_date',
fields = ('url', 'id', 'title', 'slug', 'created_by', 'created_at',
'description', 'beginning_date', 'ending_date')