﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13916	DecimalField min_value does not enforce use of decimal.Decimal type	bugs@…	nobody	"I was attempting to validate a ModelForm DecimalField using the min_value attribute, like so:
{{{
amount = forms.DecimalField(min_value = 0.01)
}}}

However, min_value requires the use of a Decimal object, like so:
{{{
amount = forms.DecimalField(min_value = decimal.Decimal(""0.01""))
}}}
This makes sense.  However, the first example should raise an exception as it's not a valid type for comparison.  It also allows other strange types, like:
{{{
amount = forms.DecimalField(min_value = ""fail"")
}}}
This may affect other field types as well, I have not tested.

Furthermore, the documentation should reflect this: http://docs.djangoproject.com/en/1.2/ref/forms/fields/#django.forms.DecimalField.min_value

Django version 1.2.1"		closed	Forms	1.2		wontfix			Unreviewed	0	0	0	0	0	0
