From 067288ea4a19bbdd3ef5eff09144fd657194ad69 Mon Sep 17 00:00:00 2001 From: Ihor Utkin Date: Mon, 30 Sep 2024 10:07:45 +0200 Subject: [PATCH] Resolve --- cinema/serializers.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cinema/serializers.py b/cinema/serializers.py index e1168af07..9eabffe2b 100644 --- a/cinema/serializers.py +++ b/cinema/serializers.py @@ -6,19 +6,22 @@ class ActorSerializer(serializers.ModelSerializer): class Meta: model = Actor - fields = ['id', 'first_name', 'last_name'] + fields = ["id", "first_name", "last_name"] + class GenreSerializer(serializers.ModelSerializer): class Meta: model = Genre - fields = ['id', 'name'] + fields = ["id", "name"] + class CinemaHallSerializer(serializers.ModelSerializer): class Meta: model = CinemaHall - fields = ['id', 'name', 'rows', 'seats_in_row'] + fields = ["id", "name", "rows", "seats_in_row"] + class MovieSerializer(serializers.ModelSerializer): class Meta: model = Movie - fields = ['id', 'title', 'description', 'duration'] + fields = ["id", "title", "description", "duration"]