mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Updated allow_migrate() signature in check framework tests
This commit is contained in:
parent
228427ab1a
commit
18afd50a2b
2 changed files with 3 additions and 3 deletions
|
@ -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()])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue