summaryrefslogtreecommitdiff
path: root/tests/check_framework/test_multi_db.py
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2016-02-10 15:44:04 +1100
committerMarkus Holtermann <info@markusholtermann.eu>2016-02-12 14:31:27 +1100
commit18afd50a2beae2e72cfc4841a6b80f253fe52a1b (patch)
tree2288ee0a0b27d5de72f74e2eecd51f52644111e5 /tests/check_framework/test_multi_db.py
parent228427ab1ab6aaafed4eacfb532f7ddb6cc1ed6c (diff)
Updated allow_migrate() signature in check framework tests
Diffstat (limited to 'tests/check_framework/test_multi_db.py')
-rw-r--r--tests/check_framework/test_multi_db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check_framework/test_multi_db.py b/tests/check_framework/test_multi_db.py
index bfbeab0029..f273d397e2 100644
--- a/tests/check_framework/test_multi_db.py
+++ b/tests/check_framework/test_multi_db.py
@@ -7,8 +7,8 @@ class TestRouter(object):
"""
Routes to the 'other' database if the model name starts with 'Other'.
"""
- def allow_migrate(self, db, app_label, model=None, **hints):
- return db == ('other' if model._meta.verbose_name.startswith('other') else 'default')
+ def allow_migrate(self, db, app_label, model_name=None, **hints):
+ return db == ('other' if model_name.startswith('other') else 'default')
@override_settings(DATABASE_ROUTERS=[TestRouter()])