From 9ec77f3d6633691c9bbf31d10af2313689170c85 Mon Sep 17 00:00:00 2001 From: "Stefan R. Filipek" Date: Sat, 21 Apr 2018 09:42:14 -0400 Subject: [PATCH] Fixed #29349 -- Doc'd the default behavior of router.allow_relation(). --- docs/topics/db/multi-db.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt index 394d25cfd9..f857d29010 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