Addresses #72, hopefully.

This commit is contained in:
Christopher Neugebauer 2016-09-05 21:10:21 +10:00
parent 878da1f2d8
commit ea599bbaad

View file

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