From 937643a1f215d7d2063b256269d757a2ee316f07 Mon Sep 17 00:00:00 2001 From: Adrian Andreias Date: Sun, 15 Mar 2015 11:05:54 +0200 Subject: [PATCH] Fixed allow_migrate() signature in router examples. --- docs/topics/db/multi-db.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt index e84906bb49..521b1ecb69 100644 --- a/docs/topics/db/multi-db.txt +++ b/docs/topics/db/multi-db.txt @@ -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. """