Skip to content

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

Add migrations

fowczareka1cfb954874c
diff --git a/saleor/product/migrations/0077_generate_versatile_background_images.py b/saleor/product/migrations/0077_generate_versatile_background_images.py
index df6d1e88c2..7b7d1b7f12 100644
--- a/saleor/product/migrations/0077_generate_versatile_background_images.py
+++ b/saleor/product/migrations/0077_generate_versatile_background_images.py
@@ -24,10 +24,12 @@ def warm_model_background_images(model: models.Model):
log_failed_images(failed_to_create)
-def warm_background_images(*_):
+def warm_background_images(apps, *_):
+ Category = apps.get_model('product', 'Category')
print('Generating thumbnails for Categories', file=stderr)
warm_model_background_images(Category)
+ Collection = apps.get_model('product', 'Collection')
print('Generating thumbnails for Collections', file=stderr)
warm_model_background_images(Collection)
diff --git a/saleor/product/migrations/0078_auto_20181119_0535.py b/saleor/product/migrations/0078_auto_20181119_0535.py
new file mode 100644
index 0000000000..08882e82e2
--- /dev/null
+++ b/saleor/product/migrations/0078_auto_20181119_0535.py
@@ -0,0 +1,23 @@
+# Generated by Django 2.1.3 on 2018-11-19 11:35
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('product', '0077_generate_versatile_background_images'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='collection',
+ name='description',
+ field=models.TextField(blank=True, null=True),
+ ),
+ migrations.AddField(
+ model_name='collectiontranslation',
+ name='description',
+ field=models.TextField(blank=True, null=True),
+ ),
+ ]