diff --git a/cinema/serializers.py b/cinema/serializers.py index a00ba3e6..0290fee8 100644 --- a/cinema/serializers.py +++ b/cinema/serializers.py @@ -43,10 +43,7 @@ class MovieListSerializer(MovieSerializer): read_only=True, slug_field="name" ) - actors = serializers.SerializerMethodField() - - def get_actors(self, obj: Movie) -> list[str]: - return [str(actor) for actor in obj.actors.all()] + actors = serializers.StringRelatedField(many=True) class MovieSessionSerializer(serializers.ModelSerializer):