Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix cart prefetch
Krzysztof Wolskia1fb94e84318
diff --git a/saleor/cart/models.py b/saleor/cart/models.pyindex ccf574a9a6..d350979538 100644--- a/saleor/cart/models.py+++ b/saleor/cart/models.py@@ -54,8 +54,13 @@ class CartQueryset(models.QuerySet):def for_display(self):return self.prefetch_related(- 'lines', 'lines__variant', 'lines__variant__product__attributes',- 'lines__variant__product__attributes__values',+ 'lines', 'lines__variant',+ 'lines__variant__product__product_class__product_attributes',+ 'lines__variant__product__product_class__'+ 'product_attributes__values',+ 'lines__variant__product__product_class__'+ 'variant_attributes',+ 'lines__variant__product__product_class__variant_attributes__values','lines__variant__stock', 'lines__variant__product__images','lines__variant__product')