summaryrefslogtreecommitdiff
path: root/docs/db-api.txt
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-10-14 02:13:13 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-10-14 02:13:13 +0000
commite9f1f5046147fc0d1a9f3a24bfa6607ef0742e80 (patch)
treee563d8c2dff612fb7622bbb834655d0144dbe715 /docs/db-api.txt
parent72f9b7d4e84cf288e86255d2f61a4343e2a65026 (diff)
queryset-refactor: Re-added a docs change that was accidentally lost in the merge in [6466].
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6488 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/db-api.txt')
-rw-r--r--docs/db-api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt
index adca8b4d5c..518e170407 100644
--- a/docs/db-api.txt
+++ b/docs/db-api.txt
@@ -1371,6 +1371,11 @@ equivalent::
Entry.objects.filter(blog__id=3) # __exact is implied
Entry.objects.filter(blog__pk=3) # __pk implies __id__exact
+.. note::
+ Because of this shortcut, you cannot have a field called ``pk`` that is not
+ the primary key of the model. It will always be replaced by the name of the
+ model's primary key in queries.
+
Lookups that span relationships
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~