mirror of https://github.com/django/django.git
[1.8.x] Simplified wording in QuerySet.update() docs.
Backport of bf07ba523a
from master
This commit is contained in:
parent
52b5890f52
commit
aefa3a6a03
|
@ -1014,8 +1014,8 @@ new value to be the new model instance you want to point to. For example::
|
||||||
The ``update()`` method is applied instantly and returns the number of rows
|
The ``update()`` method is applied instantly and returns the number of rows
|
||||||
matched by the query (which may not be equal to the number of rows updated if
|
matched by the query (which may not be equal to the number of rows updated if
|
||||||
some rows already have the new value). The only restriction on the
|
some rows already have the new value). The only restriction on the
|
||||||
:class:`~django.db.models.query.QuerySet` that is updated is that it can only
|
:class:`~django.db.models.query.QuerySet` being updated is that it can only
|
||||||
access one database table, the model's main table. You can filter based on
|
access one database table: the model's main table. You can filter based on
|
||||||
related fields, but you can only update columns in the model's main
|
related fields, but you can only update columns in the model's main
|
||||||
table. Example::
|
table. Example::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue