瀏覽代碼

Add missing migrations for catalogue and customer apps.

master
Dan Helyar 9 年之前
父節點
當前提交
f21c6c6a98

+ 22
- 0
src/oscar/apps/catalogue/migrations/0006_auto_20150807_1725.py 查看文件

@@ -0,0 +1,22 @@
1
+# -*- coding: utf-8 -*-
2
+from __future__ import unicode_literals
3
+
4
+from django.db import models, migrations
5
+import django.core.validators
6
+import oscar.core.validators
7
+
8
+
9
+class Migration(migrations.Migration):
10
+
11
+    dependencies = [
12
+        ('catalogue', '0005_auto_20150604_1450'),
13
+    ]
14
+
15
+    operations = [
16
+        migrations.AlterField(
17
+            model_name='productattribute',
18
+            name='code',
19
+            field=models.SlugField(max_length=128, verbose_name='Code', validators=[django.core.validators.RegexValidator(regex=b'^[a-zA-Z_][0-9a-zA-Z_]*$', message="Code can only contain the letters a-z, A-Z, digits, and underscores, and can't start with a digit"), oscar.core.validators.non_python_keyword]),
20
+            preserve_default=True,
21
+        ),
22
+    ]

+ 22
- 0
src/oscar/apps/customer/migrations/0002_auto_20150807_1725.py 查看文件

@@ -0,0 +1,22 @@
1
+# -*- coding: utf-8 -*-
2
+from __future__ import unicode_literals
3
+
4
+from django.db import models, migrations
5
+import oscar.models.fields.autoslugfield
6
+import django.core.validators
7
+
8
+
9
+class Migration(migrations.Migration):
10
+
11
+    dependencies = [
12
+        ('customer', '0001_initial'),
13
+    ]
14
+
15
+    operations = [
16
+        migrations.AlterField(
17
+            model_name='communicationeventtype',
18
+            name='code',
19
+            field=oscar.models.fields.autoslugfield.AutoSlugField(populate_from=b'name', validators=[django.core.validators.RegexValidator(regex=b'^[a-zA-Z_][0-9a-zA-Z_]*$', message="Code can only contain the letters a-z, A-Z, digits, and underscores, and can't start with a digit.")], editable=False, max_length=128, separator='_', blank=True, help_text='Code used for looking up this event programmatically', unique=True, verbose_name='Code'),
20
+            preserve_default=True,
21
+        ),
22
+    ]

Loading…
取消
儲存