diff --git a/shiftregister/signage/views.py b/shiftregister/signage/views.py index 741614a..cd8e310 100644 --- a/shiftregister/signage/views.py +++ b/shiftregister/signage/views.py @@ -51,6 +51,7 @@ def terminal(request): .filter( help_wanted, start_at__gt=timezone.now() - timedelta(minutes=20), + deleted=False, ) .order_by("start_at", "room_id") ) diff --git a/shiftregister/team/views.py b/shiftregister/team/views.py index 79f04f5..ee82aa3 100644 --- a/shiftregister/team/views.py +++ b/shiftregister/team/views.py @@ -144,6 +144,7 @@ class FreeShiftList(ShiftList): .filter( help_wanted, start_at__gt=timezone.now(), + deltetd = False, ) .order_by("start_at", "room_id") )