mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
[1.4.X] Fixed #17435 - Clarified that QuerySet.update returns the number of rows matched
Backport of 6d46c740d8
from master
This commit is contained in:
parent
0636c9583f
commit
c06b724a00
2 changed files with 4 additions and 2 deletions
|
@ -1530,7 +1530,8 @@ update
|
|||
.. method:: update(**kwargs)
|
||||
|
||||
Performs an SQL update query for the specified fields, and returns
|
||||
the number of rows affected.
|
||||
the number of rows matched (which may not be equal to the number of rows
|
||||
updated if some rows already have the new value).
|
||||
|
||||
For example, to turn comments off for all blog entries published in 2010,
|
||||
you could do this::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue