mirror of
https://github.com/django/django.git
synced 2025-08-16 00:30:47 +00:00
Fixed a couple of allow_migrate routers in tests.
This reverts commit 88e6fbb2e3
.
This commit is contained in:
parent
5131aec7d2
commit
1b73c764d4
2 changed files with 2 additions and 3 deletions
|
@ -1524,7 +1524,7 @@ class AntiPetRouter(object):
|
|||
# A router that only expresses an opinion on migrate,
|
||||
# passing pets to the 'other' database
|
||||
|
||||
def allow_migrate(self, db, app_label, model_name, **hints):
|
||||
def allow_migrate(self, db, app_label, model_name=None, **hints):
|
||||
if db == 'other':
|
||||
return model_name == 'pet'
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue