Fix problems with CartMixin on empty order

Fix PRETIXEU-18A
This commit is contained in:
Raphael Michel
2019-07-15 10:46:38 +02:00
parent 4bb8c3991e
commit a3707a962b

View File

@@ -50,7 +50,7 @@ class CartMixin:
return self.request._checkout_flow_invoice_address
def get_cart(self, answers=False, queryset=None, order=None, downloads=False):
if queryset:
if queryset is not None:
prefetch = []
if answers:
prefetch.append('item__questions')