mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix problems with CartMixin on empty order
Fix PRETIXEU-18A
This commit is contained in:
@@ -50,7 +50,7 @@ class CartMixin:
|
|||||||
return self.request._checkout_flow_invoice_address
|
return self.request._checkout_flow_invoice_address
|
||||||
|
|
||||||
def get_cart(self, answers=False, queryset=None, order=None, downloads=False):
|
def get_cart(self, answers=False, queryset=None, order=None, downloads=False):
|
||||||
if queryset:
|
if queryset is not None:
|
||||||
prefetch = []
|
prefetch = []
|
||||||
if answers:
|
if answers:
|
||||||
prefetch.append('item__questions')
|
prefetch.append('item__questions')
|
||||||
|
|||||||
Reference in New Issue
Block a user