Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
sberdianskyi committed Nov 3, 2024
1 parent 0e17cf4 commit e3cde23
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cinema/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3cde23

Please sign in to comment.