﻿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
32037	MinValueValidator, MaxValueValidator comparisons are not compatible with there messages	MishaGubsky	nobody	"The standard messages for MinValueValidator and MinLengthValidator don't appropriate the logic.

{{{#!python
@deconstructible
class MaxValueValidator(BaseValidator):
    message = _('Ensure this value is less than or equal to %(limit_value)s.')
    code = 'max_value'

    def compare(self, a, b):
        return a > b

class MinValueValidator(BaseValidator):
    message = _('Ensure this value is greater than or equal to %(limit_value)s.')
    code = 'min_value'

    def compare(self, a, b):
        return a < b
}}}

According to MinValueValidator and MaxValueValidator are inherited by other validators, the simplest way to fix this is to update the error message.

As an improvement will be great to have the validators without strong comparison."	Bug	closed	Core (Other)	3.1	Normal	invalid	MinValueValidator, MaxValueValidator, greater than or equal, less than or equal		Unreviewed	0	0	0	0	0	0
