mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #31806 -- Made validators include the value in ValidationErrors.
This commit is contained in:
committed by
Mariusz Felisiak
parent
013e06bb37
commit
83fbaa9231
@@ -327,7 +327,9 @@ Utilities
|
||||
Validators
|
||||
~~~~~~~~~~
|
||||
|
||||
* ...
|
||||
* Built-in validators now include the provided value in the ``params`` argument
|
||||
of a raised :exc:`~django.core.exceptions.ValidationError`. This allows
|
||||
custom error messages to use the ``%(value)s`` placeholder.
|
||||
|
||||
.. _backwards-incompatible-3.2:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user