Skip to content

Commit

Permalink
"solution 3"
Browse files Browse the repository at this point in the history
  • Loading branch information
Olha Stadnik committed Dec 9, 2024
1 parent 5c8337b commit 00d28e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cinema/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 00d28e4

Please sign in to comment.