Kaynağa Gözat

Handle conflicting offer migrations

Both the master branch and Django 1.7 branch introduced a South
migration for offers. It's been addressed by dropping the one introduced
on the Django 1.7 branch, and re-creating it.

The native migrations have been completely recreated.
master
Maik Hoepfel 11 yıl önce
ebeveyn
işleme
b8308a4b42

+ 1
- 0
docs/source/releases/v0.8.rst Dosyayı Görüntüle

@@ -551,6 +551,7 @@ Migrations
551 551
 * Offer:
552 552
 
553 553
     - ``0033`` - Use an ``AutoSlug`` field for ``Range`` models
554
+    - ``0034`` - Add moved ``RangedProductFileUpload`` model.
554 555
 
555 556
 * Order:
556 557
 

oscar/apps/analytics/migrations/0002_auto_20140722_1813.py → oscar/apps/analytics/migrations/0002_auto_20140729_1113.py Dosyayı Görüntüle


oscar/apps/basket/migrations/0002_auto_20140722_1813.py → oscar/apps/basket/migrations/0002_auto_20140729_1113.py Dosyayı Görüntüle


+ 1
- 1
oscar/apps/catalogue/migrations/0001_initial.py Dosyayı Görüntüle

@@ -89,7 +89,7 @@ class Migration(migrations.Migration):
89 89
                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
90 90
                 ('structure', models.CharField(default=b'standalone', max_length=10, verbose_name='Product structure', choices=[(b'standalone', 'Stand-alone product'), (b'parent', 'Parent product'), (b'child', 'Child product')])),
91 91
                 ('upc', oscar.models.fields.NullCharField(max_length=64, help_text='Universal Product Code (UPC) is an identifier for a product which is not specific to a particular  supplier. Eg an ISBN for a book.', unique=True, verbose_name='UPC')),
92
-                ('title', models.CharField(max_length=255, verbose_name='Product title', blank=True)),
92
+                ('title', models.CharField(max_length=255, verbose_name='Title', blank=True)),
93 93
                 ('slug', models.SlugField(max_length=255, verbose_name='Slug')),
94 94
                 ('description', models.TextField(verbose_name='Description', blank=True)),
95 95
                 ('rating', models.FloatField(verbose_name='Rating', null=True, editable=False)),

+ 1
- 1
oscar/apps/offer/migrations/0001_initial.py Dosyayı Görüntüle

@@ -81,7 +81,7 @@ class Migration(migrations.Migration):
81 81
             fields=[
82 82
                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
83 83
                 ('name', models.CharField(unique=True, max_length=128, verbose_name='Name')),
84
-                ('slug', models.SlugField(max_length=128, unique=True, null=True, verbose_name='Slug')),
84
+                ('slug', oscar.models.fields.autoslugfield.AutoSlugField(populate_from=b'name', editable=False, max_length=128, blank=True, unique=True, verbose_name='Slug')),
85 85
                 ('description', models.TextField(blank=True)),
86 86
                 ('is_public', models.BooleanField(default=False, help_text='Public ranges have a customer-facing page', verbose_name='Is public?')),
87 87
                 ('includes_all_products', models.BooleanField(default=False, verbose_name='Includes all products?')),

oscar/apps/offer/migrations/0033_auto__chg_field_range_slug.py → oscar/apps/offer/south_migrations/0033_auto__chg_field_range_slug.py Dosyayı Görüntüle


oscar/apps/offer/south_migrations/0033_auto__add_rangeproductfileupload.py → oscar/apps/offer/south_migrations/0034_auto__add_rangeproductfileupload.py Dosyayı Görüntüle

@@ -221,7 +221,7 @@ class Migration(SchemaMigration):
221 221
             'is_public': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
222 222
             'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'}),
223 223
             'proxy_class': ('oscar.models.fields.NullCharField', [], {'default': 'None', 'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
224
-            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '128', 'unique': 'True', 'null': 'True'})
224
+            'slug': ('oscar.models.fields.autoslugfield.AutoSlugField', [], {'allow_duplicates': 'False', 'max_length': '128', 'separator': "u'-'", 'blank': 'True', 'unique': 'True', 'populate_from': "'name'", 'overwrite': 'False'})
225 225
         },
226 226
         'offer.rangeproduct': {
227 227
             'Meta': {'unique_together': "(('range', 'product'),)", 'object_name': 'RangeProduct'},

Loading…
İptal
Kaydet