diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-12-28 12:36:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-28 12:36:57 +0100 |
| commit | ad6bb20557f5c87de26aeb3afb061af942a8cc17 (patch) | |
| tree | 2d3e4f7e5a620c7f1daaec3607131ae52bacbb22 /docs/ref/forms/fields.txt | |
| parent | b13d920b7b56d3e088e35311f5ee54f25d2779af (diff) | |
Avoided counting attributes and methods in docs.
Diffstat (limited to 'docs/ref/forms/fields.txt')
| -rw-r--r-- | docs/ref/forms/fields.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index a88f2fb8ab..3343832c6b 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -374,7 +374,7 @@ For each field, we describe the default widget used if you don't specify ``min_length`` are provided. Otherwise, all inputs are valid. * Error message keys: ``required``, ``max_length``, ``min_length`` - Has four optional arguments for validation: + Has the following optional arguments for validation: .. attribute:: max_length .. attribute:: min_length @@ -550,7 +550,7 @@ For each field, we describe the default widget used if you don't specify regular expression. * Error message keys: ``required``, ``invalid`` - Has three optional arguments ``max_length``, ``min_length``, and + Has the optional arguments ``max_length``, ``min_length``, and ``empty_value`` which work just as they do for :class:`CharField`. ``FileField`` @@ -566,7 +566,7 @@ For each field, we describe the default widget used if you don't specify * Error message keys: ``required``, ``invalid``, ``missing``, ``empty``, ``max_length`` - Has two optional arguments for validation, ``max_length`` and + Has the optional arguments for validation: ``max_length`` and ``allow_empty_file``. If provided, these ensure that the file name is at most the given length, and that validation will succeed even if the file content is empty. @@ -1009,7 +1009,7 @@ For each field, we describe the default widget used if you don't specify given value is a valid URL. * Error message keys: ``required``, ``invalid`` - Has three optional arguments ``max_length``, ``min_length``, and + Has the optional arguments ``max_length``, ``min_length``, and ``empty_value`` which work just as they do for :class:`CharField`. ``UUIDField`` |
