summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Andreias <adi.andreias@gmail.com>2015-03-15 11:05:54 +0200
committerTim Graham <timograham@gmail.com>2015-03-16 09:39:41 -0400
commit63b998a6534d24a80082b05a321d1748aedde267 (patch)
treebca58d0dc49afb57a469b984d7d9332e5ad8921b /docs
parent6dcbfc0700954ece013f1d12d83caeb908056e37 (diff)
[1.8.x] Fixed allow_migrate() signature in router examples.
Backport of 937643a1f215d7d2063b256269d757a2ee316f07 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/multi-db.txt4
1 files 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.
"""