1
0
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:
Jon Dufresne
2020-07-20 16:11:23 -07:00
committed by Mariusz Felisiak
parent 013e06bb37
commit 83fbaa9231
3 changed files with 85 additions and 19 deletions

View File

@@ -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: