summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2010-12-29 01:26:45 +0000
committerRamiro Morales <cramm0@gmail.com>2010-12-29 01:26:45 +0000
commit9bb995c6e0a2026c5efba9d98bdb3322d057570f (patch)
tree5a6ce51e4eba6b947e58d86ff3cc0e91b799f0d3 /docs
parent116804fbb5eb69080930e61961a4c7bffbc434e4 (diff)
[1.2.X] Fixed #7726 -- Added validation of max_digits and decimal_places options to DecimalField model field. Thanks theevilgeek for the report and elbarto for the patch.
Backport of [15094] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/fields.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 879b4c354b..7a9bb995b0 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -437,11 +437,12 @@ A fixed-precision decimal number, represented in Python by a
.. attribute:: DecimalField.max_digits
- The maximum number of digits allowed in the number
+ The maximum number of digits allowed in the number. Note that this number
+ must be greater than ``decimal_places``, if it exists.
.. attribute:: DecimalField.decimal_places
- The number of decimal places to store with the number
+ The number of decimal places to store with the number.
For example, to store numbers up to 999 with a resolution of 2 decimal places,
you'd use::