summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/optimization.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/db/optimization.txt b/docs/topics/db/optimization.txt
index 788e447050..446ec87256 100644
--- a/docs/topics/db/optimization.txt
+++ b/docs/topics/db/optimization.txt
@@ -161,7 +161,7 @@ So using the :ref:`example Weblog models <queryset-model-example>`::
will be quicker than:
- >>> entry = Entry.object.get(headline="News Item Title")
+ >>> entry = Entry.objects.get(headline="News Item Title")
because ``id`` is indexed by the database and is guaranteed to be unique.