Skip to content

Commit

Permalink
Finished
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksa-32 committed Jan 5, 2025
1 parent 6918e41 commit 2459d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinema/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class GenreList(APIView):

def get(self, request):
genres = Genre.objects.all()
serializer = MovieSerializer(genres, many=True)
serializer = GenreSerializer(genres, many=True)
return Response(serializer.data, status=status.HTTP_200_OK)

def post(self, request):
Expand Down

0 comments on commit 2459d2d

Please sign in to comment.