From 00d28e4cd5a7bb1febe3eabaf9202b71b0ca798c Mon Sep 17 00:00:00 2001 From: Olha Stadnik Date: Mon, 9 Dec 2024 19:59:42 +0200 Subject: [PATCH] "solution 3" --- cinema/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cinema/views.py b/cinema/views.py index f9cf3b54..1fefc8d3 100644 --- a/cinema/views.py +++ b/cinema/views.py @@ -17,7 +17,9 @@ class MovieViewSet(viewsets.ModelViewSet): serializer_class = MovieSerializer -class ActorList(mixins.ListModelMixin, mixins.CreateModelMixin, GenericAPIView): +class ActorList(mixins.ListModelMixin, + mixins.CreateModelMixin, + GenericAPIView): queryset = Actor.objects.all() serializer_class = ActorSerializer