[3.1.x] Fixed #32187 -- Removed unnecessary select_related in queries doc.

Backport of c448e614c6 from master
This commit is contained in:
Hasan Ramezani 2020-11-12 10:06:04 +01:00 committed by Carlton Gibson
parent 7ace6265d6
commit eba8d6f5d7
1 changed files with 1 additions and 1 deletions

View File

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