summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charettes@users.noreply.github.com>2016-09-12 08:07:30 -0400
committerTim Graham <timograham@gmail.com>2016-09-12 08:07:43 -0400
commit23cf7e50d1dfceb0836032d0e8fcf1fa4da7e855 (patch)
treef501d2aae8b76206582ada02c82257661c5de299
parent244c4c06f9fbcb5fe96511c8f22b0ee4856baf18 (diff)
[1.10.x] Fixed #27209 -- Fixed typo in docs/ref/models/database-functions.txt.
Thanks Valentin Ignatyev for the report. Backport of 767ba009764c6640b20ea6a6dc6ee2559cc87800 from master
-rw-r--r--docs/ref/models/database-functions.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt
index cab5c7815d..927153af40 100644
--- a/docs/ref/models/database-functions.txt
+++ b/docs/ref/models/database-functions.txt
@@ -37,7 +37,7 @@ Usage example::
>>> from django.db.models import FloatField
>>> from django.db.models.functions import Cast
>>> Value.objects.create(integer=4)
- >>> value = Value.objects.annotate(as_float=Cast('integer', FloatField)).get()
+ >>> value = Value.objects.annotate(as_float=Cast('integer', FloatField())).get()
>>> print(value.as_float)
4.0