﻿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
36019	MinValueValidator and MaxValueValidator messages do not match compare operators	Samuel Nussbaumer		"Excerpt from [https://github.com/django/django/blob/main/django/core/validators.py /django/core/validators.py]:

{{{
@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


@deconstructible
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
}}}

The messages imply that the comparison between a and b would be a <= b or a >= b whereas in practice they only check if a is greater or lesser than b.

Reprod:
1. Define a form field with validators=[MaxValueValidator(3), MinValueValidator(0.2)]
2. On the form, type in 0.2 and save -> ValidationError: Ensure this value is greater than or equal to 0.2.
Expected behavior: The form should not raise any ValidationErrors (according to the error message)
"	Bug	closed	Core (Other)	5.1	Normal	duplicate		Samuel Nussbaumer	Unreviewed	0	0	0	0	1	1
