From 5198b0abea892de7e1c8f8babc4211ae87823972 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Thu, 31 Mar 2016 18:27:21 -0400 Subject: [PATCH] [1.8.x] Fixed #26438 -- Fixed multiple .objects typos in the docs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks Pablo OubiƱa for the report. Backport of 64aba7a8aba06b8be52a1a099b44e1d3be4bdd26 from master --- docs/topics/db/optimization.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/db/optimization.txt b/docs/topics/db/optimization.txt index f8e031657c..5ebc690bad 100644 --- a/docs/topics/db/optimization.txt +++ b/docs/topics/db/optimization.txt @@ -161,7 +161,7 @@ So using the :ref:`example Weblog models `:: 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.