Skip to content

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

Add migration file

akjanik5758ccfcb41d
diff --git a/saleor/product/migrations/0034_collection.py b/saleor/product/migrations/0034_collection.py
deleted file mode 100644
index 5063adbd1f..0000000000
--- a/saleor/product/migrations/0034_collection.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.10.5 on 2017-02-23 14:42
-from __future__ import unicode_literals
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('product', '0033_auto_20170227_0757'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='Collection',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('name', models.CharField(max_length=128, unique=True, verbose_name='name')),
- ('slug', models.SlugField(verbose_name='slug')),
- ('products', models.ManyToManyField(blank=True, related_name='collections', to='product.Product')),
- ],
- ),
- ]
diff --git a/saleor/product/models.py b/saleor/product/models.py
index 689f1aebc8..67756bf8fe 100644
--- a/saleor/product/models.py
+++ b/saleor/product/models.py
@@ -377,7 +377,6 @@ class VariantImage(models.Model):
ProductImage, related_name='variant_images', on_delete=models.CASCADE)
-@python_2_unicode_compatible
class Collection(models.Model):
name = models.CharField(
pgettext_lazy('Product collection field', 'name'), max_length=128,