summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-10-06 07:02:11 -0400
committerTim Graham <timograham@gmail.com>2012-10-06 07:07:29 -0400
commitc06b724a00236b086a5a64510d8bf11978f083f8 (patch)
tree13923ba21c749c1f7ce3d7625e5da2107f19fe9d /docs/ref
parent0636c9583fda5a81a18b47876bcddac62bd2e547 (diff)
[1.4.X] Fixed #17435 - Clarified that QuerySet.update returns the number of rows matched
Backport of 6d46c740d8 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/querysets.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 3db490725e..da0e3e66ce 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -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::