summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorStefan R. Filipek <srfilipek@gmail.com>2018-04-21 09:42:14 -0400
committerTim Graham <timograham@gmail.com>2018-04-23 11:45:09 -0400
commit9f2586b96486d13e5d9bbcfb6fe6836f989f79dc (patch)
treefc3f7f6bfb2871d0bf7be6617eeea6942532c392 /docs
parentf1435bf6804270df027ad139dc8640176b3de3df (diff)
[2.0.x] Fixed #29349 -- Doc'd the default behavior of router.allow_relation().
Backport of 9ec77f3d6633691c9bbf31d10af2313689170c85 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/multi-db.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt
index 78f3fe23d9..d4e6b6a1d6 100644
--- a/docs/topics/db/multi-db.txt
+++ b/docs/topics/db/multi-db.txt
@@ -163,6 +163,9 @@ A database Router is a class that provides up to four methods:
used by foreign key and many to many operations to determine if a
relation should be allowed between two objects.
+ If no router has an opinion (i.e. all routers return ``None``), only
+ relations within the same database are allowed.
+
.. method:: allow_migrate(db, app_label, model_name=None, **hints)
Determine if the migration operation is allowed to run on the database with