Skip to content

Commit

Permalink
Locally the tests pass successfully, but here there are errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yulia-pl committed Dec 10, 2024
1 parent d2c9bf3 commit 3bbe9b1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cinema/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
CinemaHallSerializer)


# Для Movie
class MovieList(generics.ListCreateAPIView):
queryset = Movie.objects.all()
serializer_class = MovieSerializer
Expand All @@ -23,7 +22,6 @@ class MovieDetail(generics.RetrieveUpdateDestroyAPIView):
serializer_class = MovieSerializer


# Для Genre
class GenreList(APIView):
def get(self, request):
genres = Genre.objects.all()
Expand Down Expand Up @@ -69,7 +67,6 @@ def delete(self, request, pk):
return Response(status=status.HTTP_204_NO_CONTENT)


# Для Actor
class ActorList(mixins.ListModelMixin,
mixins.CreateModelMixin,
generics.GenericAPIView):
Expand Down Expand Up @@ -103,7 +100,7 @@ def delete(self, request, *args, **kwargs):
return self.destroy(request, *args, **kwargs)


# Для CinemaHall

class CinemaHallViewSet(mixins.ListModelMixin,
mixins.CreateModelMixin,
mixins.RetrieveModelMixin,
Expand All @@ -114,7 +111,6 @@ class CinemaHallViewSet(mixins.ListModelMixin,
serializer_class = CinemaHallSerializer


# Для Movie
class MovieViewSet(viewsets.ModelViewSet):
queryset = Movie.objects.all()
serializer_class = MovieSerializer

0 comments on commit 3bbe9b1

Please sign in to comment.