From 5dd01c6f900a688aa053e0fbfde08f9baa934771 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Wed, 4 Oct 2017 13:23:35 +0200 Subject: [PATCH] Update FloatField signature docs --- docs/api-guide/fields.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index 5f8819e11..2ae10fed7 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -250,9 +250,9 @@ A floating point representation. Corresponds to `django.db.models.fields.FloatField`. -**Signature**: `FloatField(coerce_to_string=None, max_value=None, min_value=None, localize=False)` +**Signature**: `FloatField(coerce_to_string=False, max_value=None, min_value=None, localize=False)` -- `coerce_to_string` Set to `True` if string values should be returned for the representation, or `False` if `float` objects should be returned. Defaults to `False`. Note that setting `localize` will force the value to `True`. +- `coerce_to_string` Set to `True` if string values should be returned for the representation, or `False` if `float` objects should be returned. Defaults to `False`. - `max_value` Validate that the number provided is no greater than this value. - `min_value` Validate that the number provided is no less than this value. - `localize` Set to `True` to enable localization of input and output based on the current locale. This will also force `coerce_to_string` to `True`. Defaults to `False`. Note that data formatting is enabled if you have set `USE_L10N=True` in your settings file.