mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +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:
parent
25ce177e66
commit
4cccb85e29
6 changed files with 50 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue