Fixed #17435 - Clarified that QuerySet.update returns the number of rows matched

This commit is contained in:
Tim Graham 2012-10-06 07:02:11 -04:00
parent cc337a74f1
commit 6d46c740d8
2 changed files with 4 additions and 2 deletions

View file

@ -1564,7 +1564,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::