diff options
Diffstat (limited to 'tests/migrations/test_multidb.py')
-rw-r--r-- | tests/migrations/test_multidb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/migrations/test_multidb.py b/tests/migrations/test_multidb.py index 90e03a400e..0d7ea92ef5 100644 --- a/tests/migrations/test_multidb.py +++ b/tests/migrations/test_multidb.py @@ -16,7 +16,7 @@ class AgnosticRouter(object): """ A router that doesn't have an opinion regarding migrating. """ - def allow_migrate(self, db, model, **hints): + def allow_migrate(self, db, app_label, **hints): return None @@ -24,7 +24,7 @@ class MigrateNothingRouter(object): """ A router that doesn't allow migrating. """ - def allow_migrate(self, db, model, **hints): + def allow_migrate(self, db, app_label, **hints): return False @@ -32,7 +32,7 @@ class MigrateEverythingRouter(object): """ A router that always allows migrating. """ - def allow_migrate(self, db, model, **hints): + def allow_migrate(self, db, app_label, **hints): return True @@ -40,7 +40,7 @@ class MigrateWhenFooRouter(object): """ A router that allows migrating depending on a hint. """ - def allow_migrate(self, db, model, **hints): + def allow_migrate(self, db, app_label, **hints): return hints.get('foo', False) |