From 2a1fd77da71c77c94d62ca5a62e4264ecb1d139a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Thu, 25 Feb 2021 10:45:24 +0100 Subject: [PATCH] fix migration ref in test and fix test run --- categories/tests/test_migrations.py | 4 ++-- example/settings-testing.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/categories/tests/test_migrations.py b/categories/tests/test_migrations.py index f97b85bd..8affbc37 100644 --- a/categories/tests/test_migrations.py +++ b/categories/tests/test_migrations.py @@ -6,8 +6,8 @@ class TestMigrations(MigratorTestCase): - migrate_from = ('categories', '0003_auto_20200306_1050') - migrate_to = ('categories', '0004_unique_category_slug') + migrate_from = ('categories', '0004_auto_20200517_1832') + migrate_to = ('categories', '0005_unique_category_slug') def prepare(self): Category = self.old_state.apps.get_model('categories', 'Category') diff --git a/example/settings-testing.py b/example/settings-testing.py index 21054582..ab3ae476 100644 --- a/example/settings-testing.py +++ b/example/settings-testing.py @@ -109,7 +109,7 @@ ), }, "M2M_REGISTRY": { - # 'simpletext.simpletext': {'name': 'categories', 'related_name': 'm2mcats'}, + "simpletext.simpletext": {"name": "categories", "related_name": "m2mcats"}, "flatpages.flatpage": ( {"name": "other_categories", "related_name": "other_cats"}, {"name": "more_categories", "related_name": "more_cats"},