cineclub-site/server/myapi/serializers.py

9 lines
213 B
Python
Raw Normal View History

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