Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Allow empty company name
Mira Szewczyk04e2143977c0
diff --git a/saleor/warehouse/migrations/0001_initial.py b/saleor/warehouse/migrations/0001_initial.pyindex 8d9351c231..2290f493c2 100644--- a/saleor/warehouse/migrations/0001_initial.py+++ b/saleor/warehouse/migrations/0001_initial.py@@ -1,4 +1,4 @@-# Generated by Django 2.2.6 on 2019-11-15 14:54+# Generated by Django 2.2.6 on 2019-11-18 14:00import uuid@@ -31,7 +31,9 @@ class Migration(migrations.Migration):),("company_name",- models.CharField(max_length=100, verbose_name="Legal company name"),+ models.CharField(+ blank=True, max_length=100, verbose_name="Legal company name"+ ),),("email",diff --git a/saleor/warehouse/models.py b/saleor/warehouse/models.pyindex 428450f1d6..aadee39825 100644--- a/saleor/warehouse/models.py+++ b/saleor/warehouse/models.py@@ -20,6 +20,7 @@ class Warehouse(models.Model):company_name = models.CharField(pgettext_lazy("Warehouse field description", "Legal company name"),max_length=100,+ blank=True,)shipping_zones = models.ManyToManyField(ShippingZone, blank=True)