From e3cde23cebedbaca50dcc65f3e5390ef4c0e321e Mon Sep 17 00:00:00 2001 From: Serhii Berdianskyi Date: Sun, 3 Nov 2024 18:33:34 +0200 Subject: [PATCH] Update --- cinema/serializers.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cinema/serializers.py b/cinema/serializers.py index ee4618983..943f2b90c 100644 --- a/cinema/serializers.py +++ b/cinema/serializers.py @@ -65,14 +65,6 @@ class MovieSerializer(serializers.Serializer): title = serializers.CharField(max_length=255) description = serializers.CharField() duration = serializers.IntegerField() - actors = serializers.PrimaryKeyRelatedField( - queryset=Actor.objects.all(), - many=True - ) - genres = serializers.PrimaryKeyRelatedField( - queryset=Genre.objects.all(), - many=True - ) def create(self, validated_data): return Movie.objects.create(**validated_data)