Skip to content

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

Drop unused image field from Attribute mdoel

Artur Smęt19177f903083
diff --git a/saleor/product/migrations/0025_auto_20161219_0517.py b/saleor/product/migrations/0025_auto_20161219_0517.py
new file mode 100644
index 0000000000..48203716c0
--- /dev/null
+++ b/saleor/product/migrations/0025_auto_20161219_0517.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10.3 on 2016-12-19 11:17
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('product', '0024_migrate_json_data'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='attributechoicevalue',
+ name='image',
+ )
+ ]
diff --git a/saleor/product/models/base.py b/saleor/product/models/base.py
index a9992fecc3..c75d577c3a 100644
--- a/saleor/product/models/base.py
+++ b/saleor/product/models/base.py
@@ -360,9 +360,6 @@ class AttributeChoiceValue(models.Model):
max_length=7,
validators=[RegexValidator('^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$')],
blank=True)
- image = VersatileImageField(
- pgettext_lazy('Attribute choice value field', 'image'),
- upload_to='attributes', blank=True, null=True)
attribute = models.ForeignKey(ProductAttribute, related_name='values')
def __str__(self):