Code

Ticket #11496: decimal-fields.diff

File decimal-fields.diff, 517 bytes (added by adamv, 3 years ago)

Document that min/max need to be decimals. Use text from IntegerField to eliminated missing apostrophe on "fields".

Line 
1diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
2index f93120d..6ca36e3 100644
3--- a/docs/ref/forms/fields.txt
4+++ b/docs/ref/forms/fields.txt
5@@ -475,7 +475,8 @@ Takes four optional arguments:
6 .. attribute:: DecimalField.max_value
7 .. attribute:: DecimalField.min_value
8 
9-    These attributes define the limits for the fields value.
10+    These control the range of values permitted in the field, and should be
11+    given as ``decimal.Decimal`` values.
12 
13 .. attribute:: DecimalField.max_digits
14