From 28c2ded20ef076e78da8c98640dd53533bb15502 Mon Sep 17 00:00:00 2001 From: Arsenii Aristov Date: Sat, 11 Jan 2025 19:03:12 +0200 Subject: [PATCH] solution-movie-actions --- db/models.py | 1 - db/services/cinema_hall.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/db/models.py b/db/models.py index 45c9bccc..ae4569c6 100644 --- a/db/models.py +++ b/db/models.py @@ -47,7 +47,6 @@ class MovieSession(models.Model): movie = models.ForeignKey(Movie, related_name="movie_sessions", on_delete=models.CASCADE) - def __str__(self) -> str: return (f"{self.movie.title} " f"{self.show_time.strftime('%d.%m.%Y %H:%M')}") diff --git a/db/services/cinema_hall.py b/db/services/cinema_hall.py index d63281d6..56f58446 100644 --- a/db/services/cinema_hall.py +++ b/db/services/cinema_hall.py @@ -6,6 +6,7 @@ def get_cinema_halls() -> QuerySet: return CinemaHall.objects.all() + def create_cinema_hall(hall_name: str, hall_rows: str, hall_seats: str) -> None: