From: Stephen Finucane Date: Fri, 9 Feb 2018 11:52:05 +0000 (+0000) Subject: migrations: Add missing Series.Meta, Patch.Meta changes X-Git-Tag: v2.1.0-rc1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad494ed34608834cd942491a298a77bf679d8b4d;p=thirdparty%2Fpatchwork.git migrations: Add missing Series.Meta, Patch.Meta changes These were missed in previous patches. Signed-off-by: Stephen Finucane Fixes: 8585ea5af ("models: Use 'base_manager_name'") Fixes: ed7328fdb ("models: Series plural name is Series") --- diff --git a/patchwork/migrations/0021_django_1_10_fixes.py b/patchwork/migrations/0021_django_1_10_fixes.py new file mode 100644 index 00000000..55aedbec --- /dev/null +++ b/patchwork/migrations/0021_django_1_10_fixes.py @@ -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'}, + ), + ]