1
0
mirror of https://github.com/django/django.git synced 2025-03-22 23:30:45 +00:00

Fixed allow_migrate signature in one of the tests.

Refs #24351.
This commit is contained in:
Loic Bistuer 2015-02-21 23:08:09 +07:00
parent 99a1bbf985
commit fa5f936b48

View File

@ -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: