Commit 36de2920 authored by Anubhav Joshi's avatar Anubhav Joshi Committed by Baptiste Mispelon
Browse files

Fixed #22405 -- Fixed string error in models/queries docs.

parent d6c9bdd8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: