Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Simplify generating slug for warehouse in random_data
IKarbowiak5bb60b8e056c
diff --git a/saleor/core/utils/random_data.py b/saleor/core/utils/random_data.pyindex 8508890e20..6b3272a5e0 100644--- a/saleor/core/utils/random_data.py+++ b/saleor/core/utils/random_data.py@@ -14,13 +14,11 @@ from django.contrib.sites.models import Sitefrom django.core.files import Filefrom django.db.models import Qfrom django.utils import timezone-from django.utils.encoding import smart_textfrom django.utils.text import slugifyfrom faker import Factoryfrom faker.providers import BaseProviderfrom measurement.measures import Weightfrom prices import Money, TaxedMoney-from text_unidecode import unidecodefrom ...account.models import Address, Userfrom ...account.utils import store_user_address@@ -949,7 +947,7 @@ def create_warehouses():shipping_zone_name = shipping_zone.namewarehouse, _ = Warehouse.objects.update_or_create(name=shipping_zone_name,- slug=slugify(smart_text(unidecode(shipping_zone_name))),+ slug=slugify(shipping_zone_name),defaults={"company_name": fake.company(), "address": create_address()},)warehouse.shipping_zones.add(shipping_zone)