12 lines
269 B
Python
12 lines
269 B
Python
from rest_framework import serializers
|
|
from web.models.event import Event
|
|
|
|
|
|
class EventSerializer(serializers.ModelSerializer):
|
|
# to_representation(self, instance) if needed
|
|
# fk = Serializer()
|
|
|
|
class Meta:
|
|
model = Event
|
|
fields = '__all__'
|
|
|