From 767ba009764c6640b20ea6a6dc6ee2559cc87800 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Mon, 12 Sep 2016 08:07:30 -0400 Subject: [PATCH] Fixed #27209 -- Fixed typo in docs/ref/models/database-functions.txt. Thanks Valentin Ignatyev for the report. --- docs/ref/models/database-functions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt index 74198ed749c..0d9c80fa256 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