summaryrefslogtreecommitdiff
path: root/docs/db-api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/db-api.txt')
-rw-r--r--docs/db-api.txt7
1 files changed, 1 insertions, 6 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt
index 61cf2d4ffd..adca8b4d5c 100644
--- a/docs/db-api.txt
+++ b/docs/db-api.txt
@@ -952,7 +952,7 @@ Example::
If you pass ``in_bulk()`` an empty list, you'll get an empty dictionary.
``iterator()``
-~~~~~~~~~~~~
+~~~~~~~~~~~~~~
Evaluates the ``QuerySet`` (by performing the query) and returns an
`iterator`_ over the results. A ``QuerySet`` typically reads all of
@@ -1371,11 +1371,6 @@ 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 in your model 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~