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:27:47 -0400 |
| commit | 64aba7a8aba06b8be52a1a099b44e1d3be4bdd26 (patch) | |
| tree | cf9b96fb44b38bbb22b501dec3ae3cf13608a526 /docs/ref | |
| parent | 8928823b135b9ce2c7b18f4da0d2602b113a247e (diff) | |
Fixed #26438 -- Fixed multiple .objects typos in the docs.
Thanks Pablo OubiƱa for the report.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/options.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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`` ----------------- |
