mirror of https://github.com/django/django.git
Fixed #27209 -- Fixed typo in docs/ref/models/database-functions.txt.
Thanks Valentin Ignatyev for the report.
This commit is contained in:
parent
a1ad896422
commit
767ba00976
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue