diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index b36c9cc..2228671 100644
a
|
b
|
Has two optional arguments for validation:
|
347 | 347 | * Validates that the given value exists in the list of choices. |
348 | 348 | * Error message keys: ``required``, ``invalid_choice`` |
349 | 349 | |
| 350 | For the ``invalid_choice`` error, ``%(value)s`` will be replaced with the |
| 351 | selected choice. |
| 352 | |
350 | 353 | Takes one extra required argument: |
351 | 354 | |
352 | 355 | .. attribute:: ChoiceField.choices |
… |
… |
If no ``input_formats`` argument is provided, the default input formats are::
|
465 | 468 | ``min_value``, ``max_digits``, ``max_decimal_places``, |
466 | 469 | ``max_whole_digits`` |
467 | 470 | |
| 471 | The ``max_value`` and ``min_value`` error messages may contain |
| 472 | ``%(limit_value)s``, which will be substituted by the appropriate limit. |
| 473 | |
468 | 474 | Takes four optional arguments: |
469 | 475 | |
470 | 476 | .. attribute:: DecimalField.max_value |
… |
… |
given length.
|
515 | 521 | * Normalizes to: An ``UploadedFile`` object that wraps the file content |
516 | 522 | and file name into a single object. |
517 | 523 | * Validates that non-empty file data has been bound to the form. |
518 | | * Error message keys: ``required``, ``invalid``, ``missing``, ``empty`` |
| 524 | * Error message keys: ``required``, ``invalid``, ``missing``, ``empty``, |
| 525 | ``max_length`` |
519 | 526 | |
520 | 527 | To learn more about the ``UploadedFile`` object, see the :doc:`file uploads |
521 | 528 | documentation </topics/http/file-uploads>`. |
… |
… |
documentation </topics/http/file-uploads>`.
|
523 | 530 | When you use a ``FileField`` in a form, you must also remember to |
524 | 531 | :ref:`bind the file data to the form <binding-uploaded-files>`. |
525 | 532 | |
| 533 | The ``max_length`` error refers to the length of the filename. ``%(max)d`` |
| 534 | will be replaced with the maximum filename length and ``%(length)d`` will be |
| 535 | replaced with the current filename length. |
| 536 | |
526 | 537 | ``FilePathField`` |
527 | 538 | ~~~~~~~~~~~~~~~~~ |
528 | 539 | |
… |
… |
When you use an ``ImageField`` on a form, you must also remember to
|
605 | 616 | * Error message keys: ``required``, ``invalid``, ``max_value``, |
606 | 617 | ``min_value`` |
607 | 618 | |
| 619 | The ``max_value`` and ``min_value`` error messages may contain |
| 620 | ``%(limit_value)s``, which will be substituted by the appropriate limit. |
| 621 | |
608 | 622 | Takes two optional arguments for validation: |
609 | 623 | |
610 | 624 | .. attribute:: IntegerField.max_value |
… |
… |
Takes two optional arguments for validation:
|
636 | 650 | of choices. |
637 | 651 | * Error message keys: ``required``, ``invalid_choice``, ``invalid_list`` |
638 | 652 | |
| 653 | For the ``invalid_choice`` error, ``%(value)s`` will be replaced with the |
| 654 | selected choice. |
| 655 | |
639 | 656 | Takes one extra required argument, ``choices``, as for ``ChoiceField``. |
640 | 657 | |
641 | 658 | ``TypedMultipleChoiceField`` |
… |
… |
takes two extra arguments, ``coerce`` and ``empty_value``.
|
654 | 671 | coerced. |
655 | 672 | * Error message keys: ``required``, ``invalid_choice`` |
656 | 673 | |
| 674 | For the ``invalid_choice`` error, ``%(value)s`` will be replaced with the |
| 675 | selected choice. |
| 676 | |
657 | 677 | Takes two extra arguments, ``coerce`` and ``empty_value``, as for ``TypedChoiceField``. |
658 | 678 | |
659 | 679 | ``NullBooleanField`` |