Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add field to define if field is shippable to product class
Mira Szewczyk072507a2f6c7
diff --git a/saleor/product/migrations/0026_auto_20161230_0347.py b/saleor/product/migrations/0026_auto_20161230_0347.pynew file mode 100644index 0000000000..65b95bd1ec--- /dev/null+++ b/saleor/product/migrations/0026_auto_20161230_0347.py@@ -0,0 +1,20 @@+# -*- coding: utf-8 -*-+# Generated by Django 1.10.3 on 2016-12-30 09:47+from __future__ import unicode_literals++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ('product', '0025_auto_20161219_0517'),+ ]++ operations = [+ migrations.AddField(+ model_name='productclass',+ name='is_shippable',+ field=models.BooleanField(default=False),+ ),+ ]diff --git a/saleor/product/models/base.py b/saleor/product/models/base.pyindex d125d89d05..815be5d43c 100644--- a/saleor/product/models/base.py+++ b/saleor/product/models/base.py@@ -73,6 +73,7 @@ class ProductClass(models.Model):'ProductAttribute', related_name='products_class', blank=True)variant_attributes = models.ManyToManyField('ProductAttribute', related_name='product_variants_class', blank=True)+ is_shippable = models.BooleanField(default=False)class Meta:app_label = 'product'