mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed #32187 -- Removed unnecessary select_related in queries doc.
This commit is contained in:
parent
9a3454f604
commit
c448e614c6
@ -1283,7 +1283,7 @@ table. Example::
|
||||
>>> b = Blog.objects.get(pk=1)
|
||||
|
||||
# Update all the headlines belonging to this Blog.
|
||||
>>> Entry.objects.select_related().filter(blog=b).update(headline='Everything is the same')
|
||||
>>> Entry.objects.filter(blog=b).update(headline='Everything is the same')
|
||||
|
||||
Be aware that the ``update()`` method is converted directly to an SQL
|
||||
statement. It is a bulk operation for direct updates. It doesn't run any
|
||||
|
Loading…
Reference in New Issue
Block a user