Now works.
validators=[MaxValueValidator(Decimal('14.5'))

But I must to do an explicit declaration Decimal('14.5').

Somebody knows why?


On 15 oct, 18:13, refreegrata <refreegr...@yahoo.com> wrote:
> Hello list. I want to validate the data in a field of a model.
>
> with this
> validators=[MaxValueValidator(14)]
> the field is correctly validated
>
> but with this
> validators=[MaxValueValidator(14.5)]
> always is invalid
>
> Somebody know how use the "MaxValueValidator" when the "max_value" is
> a decimal?
>
> thanks for read.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to