Fixed #26438 -- Fixed multiple .objects typos in the docs.

Thanks Pablo Oubiña for the report.
This commit is contained in:
Simon Charette 2016-03-31 18:27:21 -04:00
parent 8928823b13
commit 64aba7a8ab
3 changed files with 5 additions and 5 deletions

View file

@ -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``
-----------------