cineclub-site/server/myapi/serializers.py

10 lines
185 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:55 +02:00
class FilmSerializer(serializers.ModelSerializer):
2022-04-03 01:20:53 +02:00
class Meta:
model = Film
2022-04-03 01:20:55 +02:00
fields = "__all__" #