From ea599bbaad6559241531b726f6ab774a5a4d19cd Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Mon, 5 Sep 2016 21:10:21 +1000 Subject: [PATCH] Addresses #72, hopefully. --- registrasion/reporting/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registrasion/reporting/views.py b/registrasion/reporting/views.py index 6a507135..489a8203 100644 --- a/registrasion/reporting/views.py +++ b/registrasion/reporting/views.py @@ -139,8 +139,8 @@ def product_status(request, form): items = items.annotate( is_reserved=Case( - When(cart__in=commerce.Cart.reserved_carts(), then=Value(1)), - default=Value(0), + When(cart__in=commerce.Cart.reserved_carts(), then=Value(True)), + default=Value(False), output_field=models.BooleanField(), ), )