Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fixed populatedb order creation sometimes crashing
Mikail KOCAK28fba245f332
diff --git a/saleor/core/utils/random_data.py b/saleor/core/utils/random_data.pyindex 5235e0dabd..aa52756a0f 100644--- a/saleor/core/utils/random_data.py+++ b/saleor/core/utils/random_data.py@@ -519,7 +519,11 @@ def create_fulfillments(order):def create_fake_order(discounts, max_order_lines=5):- customers = User.objects.filter(is_superuser=False).order_by("?")+ customers = (+ User.objects.filter(is_superuser=False)+ .exclude(default_billing_address=None)+ .order_by("?")+ )customer = random.choice([None, customers.first()])if customer: