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