]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
migrations: Add missing Series.Meta, Patch.Meta changes
authorStephen Finucane <stephen@that.guru>
Fri, 9 Feb 2018 11:52:05 +0000 (11:52 +0000)
committerStephen Finucane <stephen@that.guru>
Tue, 13 Feb 2018 10:35:42 +0000 (10:35 +0000)
These were missed in previous patches.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 8585ea5af ("models: Use 'base_manager_name'")
Fixes: ed7328fdb ("models: Series plural name is Series")
patchwork/migrations/0021_django_1_10_fixes.py [new file with mode: 0644]

diff --git a/patchwork/migrations/0021_django_1_10_fixes.py b/patchwork/migrations/0021_django_1_10_fixes.py
new file mode 100644 (file)
index 0000000..55aedbe
--- /dev/null
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+import django
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('patchwork', '0020_tag_show_column'),
+    ]
+
+    operations = [
+        migrations.AlterModelOptions(
+            name='series',
+            options={'ordering': ('date',), 'verbose_name_plural': 'Series'},
+        ),
+    ]
+
+    if django.VERSION >= (1, 10):
+        operations += [
+            migrations.AlterModelOptions(
+                name='patch',
+                options={'base_manager_name': 'objects', 'verbose_name_plural': 'Patches'},
+            ),
+        ]