From 64aba7a8aba06b8be52a1a099b44e1d3be4bdd26 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Thu, 31 Mar 2016 18:27:21 -0400 Subject: 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. --- docs/ref/models/options.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt index e047a01f10..677916bf5c 100644 --- a/docs/ref/models/options.txt +++ b/docs/ref/models/options.txt @@ -132,9 +132,9 @@ Django quotes column and table names behind the scenes. >>> bar = Bar.objects.get(pk=1) >>> # Using model name "bar" as lookup string is deprecated. - >>> Foo.object.get(bar=bar) + >>> Foo.objects.get(bar=bar) >>> # You should use default_related_name "bars". - >>> Foo.object.get(bars=bar) + >>> Foo.objects.get(bars=bar) ``get_latest_by`` ----------------- -- cgit v1.3