Просмотр исходного кода

Remove unique constraint for proxy class field of offer condition model.

master
Alexander Gaevsky 9 лет назад
Родитель
Сommit
c6091f1bd4

+ 1
- 1
src/oscar/apps/offer/abstract_models.py Просмотреть файл

655
         _('Value'), decimal_places=2, max_digits=12, null=True, blank=True)
655
         _('Value'), decimal_places=2, max_digits=12, null=True, blank=True)
656
 
656
 
657
     proxy_class = fields.NullCharField(
657
     proxy_class = fields.NullCharField(
658
-        _("Custom class"), max_length=255, unique=True, default=None)
658
+        _("Custom class"), max_length=255, default=None)
659
 
659
 
660
     class Meta:
660
     class Meta:
661
         abstract = True
661
         abstract = True

+ 21
- 0
src/oscar/apps/offer/migrations/0003_auto_20161120_1707.py Просмотреть файл

1
+# -*- coding: utf-8 -*-
2
+# Generated by Django 1.9.11 on 2016-11-20 17:07
3
+from __future__ import unicode_literals
4
+
5
+from django.db import migrations
6
+import oscar.models.fields
7
+
8
+
9
+class Migration(migrations.Migration):
10
+
11
+    dependencies = [
12
+        ('offer', '0002_auto_20151210_1053'),
13
+    ]
14
+
15
+    operations = [
16
+        migrations.AlterField(
17
+            model_name='condition',
18
+            name='proxy_class',
19
+            field=oscar.models.fields.NullCharField(default=None, max_length=255, verbose_name='Custom class'),
20
+        ),
21
+    ]

Загрузка…
Отмена
Сохранить