diff --git a/cinema/serializers.py b/cinema/serializers.py index 4e2e8cb9..bdf0f047 100644 --- a/cinema/serializers.py +++ b/cinema/serializers.py @@ -105,7 +105,7 @@ class Meta: fields = ("id", "row", "seat", "movie_session") def validate(self, data): - data = super(TicketSerializer).validate(data) + data = super().validate(data) ticket = Ticket( movie_session=data.get("movie_session"), row=data.get("row"), diff --git a/cinema/tests/test_movie_api.py b/cinema/tests/test_movie_api.py index c1cee2c2..958c09a1 100644 --- a/cinema/tests/test_movie_api.py +++ b/cinema/tests/test_movie_api.py @@ -63,7 +63,6 @@ def test_get_movies_with_actors_filtering(self): def test_get_movies_with_title_filtering(self): movies = self.client.get(f"/api/cinema/movies/?title=ita") - print("Response data:", movies.data) self.assertEqual(len(movies.data), 1) movies = self.client.get(f"/api/cinema/movies/?title=ati") self.assertEqual(len(movies.data), 0)