[1.7.x] Fixed #22405 -- Fixed string error in models/queries docs.

Backport of 36de29200e from master.
This commit is contained in:
Anubhav Joshi 2014-04-08 09:45:00 +05:30 committed by Baptiste Mispelon
parent c148d8e730
commit 61b7fcf478
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ the field value on multiple objects - which could be very much faster than
pulling them all into Python from the database, looping over them, incrementing
the field value of each one, and saving each one back to the database::
Reporter.objects.all().update(stories_filed=F('stories_filed) + 1)
Reporter.objects.all().update(stories_filed=F('stories_filed') + 1)
``F()`` therefore can offer performance advantages by: