Skip to content

Commit

Permalink
Merge remote-tracking branch 'reference/master' into documentation_up…
Browse files Browse the repository at this point in the history
…date

* reference/master:
  docs: Fix description of `DecimalField`'s `max_digits` (encode#4714)
  Update the Python doc links to use https and point to Python 3 (encode#4713)

# Conflicts:
#	docs/api-guide/fields.md
  • Loading branch information
xordoquy committed Nov 29, 2016
2 parents 59ac19d + aed8387 commit 556df87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Corresponds to `django.db.models.fields.DecimalField`.

**Signature**: `DecimalField(max_digits, decimal_places, coerce_to_string=None, max_value=None, min_value=None)`

- `max_digits` The maximum number of digits allowed in the number. Note that this number must be greater than or equal to decimal_places.
- `max_digits` The maximum number of digits allowed in the number. It must be either `None` or an integer greater than or equal to `decimal_places`.
- `decimal_places` The number of decimal places to store with the number.
- `coerce_to_string` Set to `True` if string values should be returned for the representation, or `False` if `Decimal` objects should be returned. Defaults to the same value as the `COERCE_DECIMAL_TO_STRING` settings key, which will be `True` unless overridden. If `Decimal` objects are returned by the serializer, then the final output format will be determined by the renderer. Note that setting `localize` will force the value to `True`.
- `max_value` Validate that the number provided is no greater than this value.
Expand Down

0 comments on commit 556df87

Please sign in to comment.