From 6918e414e9088abf68a5b46b0ac9b984debe6cc4 Mon Sep 17 00:00:00 2001 From: user Date: Sun, 5 Jan 2025 05:45:22 +0200 Subject: [PATCH] Finished --- cinema/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinema/views.py b/cinema/views.py index aaced292..658c9a8c 100644 --- a/cinema/views.py +++ b/cinema/views.py @@ -6,7 +6,7 @@ from cinema.models import Movie, Actor, CinemaHall, Genre from cinema.serializers import (MovieSerializer, ActorSerializer, - GenreSerializer) + GenreSerializer, CinemaHallSerializer) class GenreList(APIView): @@ -92,7 +92,7 @@ class CinemaHallViewSet( viewsets.GenericViewSet ): queryset = CinemaHall.objects.all() - serializer_class = CinemaHall.objects.all() + serializer_class = CinemaHallSerializer class MovieViewSet(viewsets.ModelViewSet):