Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Set shipping required as default of product type

Unknown188dea64f54f
diff --git a/saleor/product/migrations/0085_auto_20190125_0025.py b/saleor/product/migrations/0085_auto_20190125_0025.py
new file mode 100644
index 0000000000..67a87b6eca
--- /dev/null
+++ b/saleor/product/migrations/0085_auto_20190125_0025.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1.4 on 2019-01-25 06:25
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('product', '0084_auto_20190122_0113'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='producttype',
+ name='is_shipping_required',
+ field=models.BooleanField(default=True),
+ ),
+ ]
diff --git a/saleor/product/models.py b/saleor/product/models.py
index 23f511f17b..2e263a4965 100644
--- a/saleor/product/models.py
+++ b/saleor/product/models.py
@@ -76,7 +76,7 @@ class CategoryTranslation(SeoModelTranslation):
class ProductType(models.Model):
name = models.CharField(max_length=128)
has_variants = models.BooleanField(default=True)
- is_shipping_required = models.BooleanField(default=False)
+ is_shipping_required = models.BooleanField(default=True)
tax_rate = models.CharField(
max_length=128, default=DEFAULT_TAX_RATE_NAME,
choices=TaxRateType.CHOICES)