creation_date field updated
This commit is contained in:
parent
7bec90d7a4
commit
c9cdc67b4f
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue