From aefa3a6a03e1a14e994c5fb3aaae38f7c1ec41fa Mon Sep 17 00:00:00 2001 From: Maximiliano Date: Mon, 1 Jun 2015 10:16:36 +0200 Subject: [PATCH] [1.8.x] Simplified wording in QuerySet.update() docs. Backport of bf07ba523a9846fa9820b87321ef4222fed98e8c from master --- docs/topics/db/queries.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 48aad80fa45..2d010ce6913 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -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 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::