Closed GoogleCodeExporter closed 9 years ago
Original comment by Sle...@gmail.com
on 25 Jan 2009 at 2:39
Original comment by Sle...@gmail.com
on 26 Jan 2009 at 1:08
With a DecimalField the min and max values must be passed in as decimal.Decimal
classes. There is no type checking on the passed value. A float will be
accepted in
your form but (Decimal('12.1') > 13) will return true and validation fails.
Some additional casting was required as the jsonencoder got itself into a
continuous
loop attemping to serialize a decimal.Decimal.
ajax_fields.AjaxField.add_rule now has a cast option that accepts a function to
do
type conversion on the rule value.
Original comment by Sle...@gmail.com
on 16 Mar 2009 at 12:09
Original issue reported on code.google.com by
Sle...@gmail.com
on 24 Jan 2009 at 7:10