From 909763c658b4fff1f7a1697669aa381197f3daee Mon Sep 17 00:00:00 2001 From: dk-15 Date: Fri, 26 May 2017 03:06:14 +0530 Subject: Add features and fix bugs - Fix sorting bug in bookings - Prevent admin access during ongoing experiment - Fix trashable bug in slot deletion - Show only online machines in test boards --- slot/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slot') diff --git a/slot/views.py b/slot/views.py index b137f93..5d22ac2 100644 --- a/slot/views.py +++ b/slot/views.py @@ -54,7 +54,7 @@ def create(req): @login_required(redirect_field_name=None) def index(req): - bookings = req.user.booking_set.select_related("slot").order_by("booking_date") + bookings = req.user.booking_set.select_related("slot").filter(trashed_at__isnull=True).order_by("booking_date") return render(req, "slot/index.html", {"bookings": reversed(bookings), "now_time": datetime.datetime.now()}) -- cgit