mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #26438 -- Fixed multiple .objects typos in the docs.
Thanks Pablo Oubiña for the report.
This commit is contained in:
parent
8928823b13
commit
64aba7a8ab
3 changed files with 5 additions and 5 deletions
|
@ -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``
|
||||
-----------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue