Skip to content

Commit

Permalink
fix migration ref in test and fix test run
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Feb 24, 2022
1 parent d1c6ce6 commit 2a1fd77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions categories/tests/test_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion example/settings-testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 2a1fd77

Please sign in to comment.