Skip to content

Commit

Permalink
changed views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
egor250330 committed Oct 22, 2024
1 parent d6242e4 commit 936bccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cinema/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def get_queryset(self):
if self.action == "list":
queryset = queryset.prefetch_related("tickets").annotate(
tickets_available=(
F("cinema_hall__rows") * F("cinema_hall__seats_in_row")
- Count("tickets")
F("cinema_hall__rows") * F("cinema_hall__seats_in_row")
- Count("tickets")
)
)

Expand Down

0 comments on commit 936bccd

Please sign in to comment.