From 963bdc78b077b052252230b62156582af4a4ed6f Mon Sep 17 00:00:00 2001 From: Henrik Palmlund Wahlgren Date: Tue, 19 Mar 2019 17:10:23 +0100 Subject: [PATCH] Updated docs to include normalize option on DecimalField --- docs/api-guide/fields.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index ede4f15ad..6ee3c7308 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -281,6 +281,7 @@ Corresponds to `django.db.models.fields.DecimalField`. - `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. - `rounding` Sets the rounding mode used when quantising to the configured precision. Valid values are [`decimal` module rounding modes][python-decimal-rounding-modes]. Defaults to `None`. +- `normalize` Will normalize the decimal value. This will strip all trailing zeroes and change the value's precision to the minimum required precision to be able to represent the value without loosing data. Defaults to `False`. #### Example usage