diff options
| author | Simon Charette <charette.s@gmail.com> | 2016-03-31 18:27:21 -0400 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2016-03-31 18:34:03 -0400 |
| commit | 5198b0abea892de7e1c8f8babc4211ae87823972 (patch) | |
| tree | 6603abd26d56e4c5edf411817101b377a8bf9930 | |
| parent | 100f28ed287adff6cc83206ce2a93185beb9350d (diff) | |
[1.8.x] Fixed #26438 -- Fixed multiple .objects typos in the docs.
Thanks Pablo OubiƱa for the report.
Backport of 64aba7a8aba06b8be52a1a099b44e1d3be4bdd26 from master
| -rw-r--r-- | docs/topics/db/optimization.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 <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. |
