Commit fa5f936b authored by Loic Bistuer's avatar Loic Bistuer
Browse files

Fixed allow_migrate signature in one of the tests.

Refs #24351.
parent 99a1bbf9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: