mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #17435 - Clarified that QuerySet.update returns the number of rows matched
This commit is contained in:
@@ -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::
|
||||
|
||||
Reference in New Issue
Block a user