Skip to content

Commit

Permalink
solution-movie-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bleit1 committed Jan 11, 2025
1 parent a2ee1c7 commit 28c2ded
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')}")
1 change: 1 addition & 0 deletions db/services/cinema_hall.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 28c2ded

Please sign in to comment.