mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #19997 -- Added custom EMPTY_VALUES to form fields
Thanks Loic Bistuer for the report and the patch.
This commit is contained in:
@@ -1480,7 +1480,7 @@ your test suite.
|
||||
error messages.
|
||||
:param field_args: the args passed to instantiate the field.
|
||||
:param field_kwargs: the kwargs passed to instantiate the field.
|
||||
:param empty_value: the expected clean output for inputs in ``EMPTY_VALUES``.
|
||||
:param empty_value: the expected clean output for inputs in ``empty_values``.
|
||||
|
||||
For example, the following code tests that an ``EmailField`` accepts
|
||||
"a@a.com" as a valid email address, but rejects "aaa" with a reasonable
|
||||
|
||||
Reference in New Issue
Block a user