summaryrefslogtreecommitdiff
path: root/docs/db-api.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-08-01 21:45:57 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-08-01 21:45:57 +0000
commita7f8984e6e6be2ded5a03f758f28a85ce43187ac (patch)
tree8c992e15e4f3021608738fa1082cd57616bc32d4 /docs/db-api.txt
parentd03bc7771693a96a3075ba8c10364bb40585b386 (diff)
Fixed #2465 -- Documented the fact that select_related doesn't follow null=True
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/db-api.txt')
-rw-r--r--docs/db-api.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt
index ce6bb0ab3b..a7cf30813d 100644
--- a/docs/db-api.txt
+++ b/docs/db-api.txt
@@ -578,6 +578,9 @@ related ``Person`` *and* the related ``City``::
p = b.author # Hits the database.
c = p.hometown # Hits the database.
+Note that ``select_related()`` does not follow foreign keys that have
+``null=True``.
+
``extra(select=None, where=None, params=None, tables=None)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~