mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
[2.2.x] Refs #30908 -- Fixed the empty value of forms.FilePathField in docs.
Backport of daa9415f78
from master
This commit is contained in:
parent
fb77d53ffe
commit
48df40262b
1 changed files with 1 additions and 1 deletions
|
@ -627,7 +627,7 @@ For each field, we describe the default widget used if you don't specify
|
|||
.. class:: FilePathField(**kwargs)
|
||||
|
||||
* Default widget: :class:`Select`
|
||||
* Empty value: ``None``
|
||||
* Empty value: ``''`` (an empty string)
|
||||
* Normalizes to: A string.
|
||||
* Validates that the selected choice exists in the list of choices.
|
||||
* Error message keys: ``required``, ``invalid_choice``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue