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:18 -0400
commit937643a1f215d7d2063b256269d757a2ee316f07 (patch)
tree2dee89afdec25dcf4d741e043dbbaa2c96429885 /docs
parent28986da4ca167ae257abcaf7caea230eca2bcd80 (diff)
Fixed allow_migrate() signature in router examples.
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.
"""