From a43c2f50c2106d868045c7858de219de9717836c Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Wed, 29 Dec 2010 01:18:11 +0000 Subject: 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. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15094 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/models/fields.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 0399eccf67..583dfb499c 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:: -- cgit v1.3