filter unpaid, cancelled and refunded orders from backoffice view

This commit is contained in:
Thomas Steen Rasmussen 2017-11-23 08:35:30 +01:00
parent adbf1f4280
commit 2e4a44271d

View file

@ -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()