0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Simplified wording in QuerySet.update() docs.

This commit is contained in:
Maximiliano 2015-06-01 10:16:36 +02:00 committed by Tim Graham
parent d29ed3f355
commit bf07ba523a

View File

@ -1021,8 +1021,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
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
:class:`~django.db.models.query.QuerySet` that is updated is that it can only
access one database table, the model's main table. You can filter based on
: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
related fields, but you can only update columns in the model's main
table. Example::