Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add value field in ProductAttributeChoiceValue model
Artur Smęt794c9499c6b3
diff --git a/saleor/product/migrations/0071_attributechoicevalue_value.py b/saleor/product/migrations/0071_attributechoicevalue_value.pynew file mode 100644index 0000000000..132d7e4649--- /dev/null+++ b/saleor/product/migrations/0071_attributechoicevalue_value.py@@ -0,0 +1,18 @@+# Generated by Django 2.0.8 on 2018-09-14 09:45++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ('product', '0070_auto_20180912_0329'),+ ]++ operations = [+ migrations.AddField(+ model_name='attributechoicevalue',+ name='value',+ field=models.CharField(default='', max_length=100),+ ),+ ]diff --git a/saleor/product/models.py b/saleor/product/models.pyindex 4fe7d6b8a9..e8031c833b 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -357,6 +357,7 @@ class ProductAttributeTranslation(models.Model):class AttributeChoiceValue(SortableModel):name = models.CharField(max_length=100)+ value = models.CharField(max_length=100, default='')slug = models.SlugField(max_length=100)attribute = models.ForeignKey(ProductAttribute, related_name='values', on_delete=models.CASCADE)