summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-11-09 08:20:30 -0500
committerTim Graham <timograham@gmail.com>2016-11-09 08:20:59 -0500
commit0d6c7cae7c4bc3ecd12c5a0d929384f3aa3e90d1 (patch)
treefcd0534db9d982d316aece608b99a829ac0f351d /docs
parentf8fab6f90233c7114d642dfe01a4e6d4cb14ee7d (diff)
Inlined a note in docs/ref/models/expressions.txt.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/expressions.txt11
1 files changed, 4 insertions, 7 deletions
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index daf8440512..91786b3622 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -119,14 +119,11 @@ know about it - it is dealt with entirely by the database. All Python does,
through Django's ``F()`` class, is create the SQL syntax to refer to the field
and describe the operation.
-.. note::
-
- In order to access the new value that has been saved in this way, the object
- will need to be reloaded::
+To access the new value saved this way, the object must be reloaded::
- reporter = Reporters.objects.get(pk=reporter.pk)
- # Or, more succinctly:
- reporter.refresh_from_db()
+ reporter = Reporters.objects.get(pk=reporter.pk)
+ # Or, more succinctly:
+ reporter.refresh_from_db()
As well as being used in operations on single instances as above, ``F()`` can
be used on ``QuerySets`` of object instances, with ``update()``. This reduces