cineclub-site/server/myapi/serializers.py

8 lines
211 B
Python
Raw Normal View History

2022-04-03 01:20:53 +02:00
from rest_framework import serializers
from .models import Film
class FilmSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Film
fields = '__all__' # TODO also send id