django__django-15277
Micro-optimisation for Value._resolve_output_field (by modifying CharField.__init__)
Verdict: the fix is stated in the issue (Tier A).
Change the CharField.__init__ to: if self.max_length is not None: self.validators.append(validators.MaxLengthValidator(self.max_length))
The text states the fix: “Change the CharField.__init__ to: if self.max_length is not None: self.validators.append(validators.MaxLengthValidator(self.max_length))”
All SWE-bench Verified tasks · more django/django tasks · How the check works