parent
99a1bbf985
commit
fa5f936b48
|
@ -1524,7 +1524,7 @@ class AntiPetRouter(object):
|
||||||
# A router that only expresses an opinion on migrate,
|
# A router that only expresses an opinion on migrate,
|
||||||
# passing pets to the 'other' database
|
# 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':
|
if db == 'other':
|
||||||
return model_name == 'pet'
|
return model_name == 'pet'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue