mirror of
https://github.com/django/django.git
synced 2025-04-12 03:22:21 +00:00
[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
This commit is contained in:
parent
244c4c06f9
commit
23cf7e50d1
@ -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…
x
Reference in New Issue
Block a user