Commit 63b998a6 authored by Adrian Andreias's avatar Adrian Andreias Committed by Tim Graham
Browse files

[1.8.x] Fixed allow_migrate() signature in router examples.

Backport of 937643a1 from master
parent 6dcbfc07
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -314,7 +314,7 @@ send queries for the ``auth`` app to ``auth_db``::
               return True
            return None

        def allow_migrate(self, db, app_label, model, **hints):
        def allow_migrate(self, db, app_label, model=None, **hints):
            """
            Make sure the auth app only appears in the 'auth_db'
            database.
@@ -352,7 +352,7 @@ from::
                return True
            return None

        def allow_migrate(self, db, app_label, model, **hints):
        def allow_migrate(self, db, app_label, model=None, **hints):
            """
            All non-auth models end up in this pool.
            """