From 2e4a44271d71873bd9589e08200ed5d5ccfbb978 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Thu, 23 Nov 2017 08:35:30 +0100 Subject: [PATCH] filter unpaid, cancelled and refunded orders from backoffice view --- src/backoffice/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backoffice/views.py b/src/backoffice/views.py index 8aace71c..0dbd2717 100644 --- a/src/backoffice/views.py +++ b/src/backoffice/views.py @@ -22,5 +22,5 @@ class BackofficeIndexView(StaffMemberRequiredMixin, TemplateView): class InfodeskView(StaffMemberRequiredMixin, ListView): template_name = "infodesk.html" - queryset = Order.objects.filter(orderproductrelation__handed_out=False).distinct() + queryset = Order.objects.filter(paid=True, cancelled=False, refunded=False, orderproductrelation__handed_out=False).distinct()