diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 7f18c67..f93120d 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::
|
464 | 467 | ``min_value``, ``max_digits``, ``max_decimal_places``, |
465 | 468 | ``max_whole_digits`` |
466 | 469 | |
| 470 | The ``max_value`` and ``min_value`` error messages may contain |
| 471 | ``%(limit_value)s``, which will be substituted by the appropriate limit. |
| 472 | |
467 | 473 | Takes four optional arguments: |
468 | 474 | |
469 | 475 | .. attribute:: DecimalField.max_value |
… |
… |
given length.
|
514 | 520 | * Normalizes to: An ``UploadedFile`` object that wraps the file content |
515 | 521 | and file name into a single object. |
516 | 522 | * Validates that non-empty file data has been bound to the form. |
517 | | * Error message keys: ``required``, ``invalid``, ``missing``, ``empty`` |
| 523 | * Error message keys: ``required``, ``invalid``, ``missing``, ``empty``, |
| 524 | ``max_length`` |
518 | 525 | |
519 | 526 | To learn more about the ``UploadedFile`` object, see the :doc:`file uploads |
520 | 527 | documentation </topics/http/file-uploads>`. |
… |
… |
documentation </topics/http/file-uploads>`.
|
522 | 529 | When you use a ``FileField`` in a form, you must also remember to |
523 | 530 | :ref:`bind the file data to the form <binding-uploaded-files>`. |
524 | 531 | |
| 532 | The ``max_length`` error refers to the length of the filename. ``%(max)d`` |
| 533 | will be replaced with the maximum filename length and ``%(length)d`` will be |
| 534 | replaced with the current filename length. |
| 535 | |
525 | 536 | ``FilePathField`` |
526 | 537 | ~~~~~~~~~~~~~~~~~ |
527 | 538 | |
… |
… |
When you use an ``ImageField`` on a form, you must also remember to
|
604 | 615 | * Error message keys: ``required``, ``invalid``, ``max_value``, |
605 | 616 | ``min_value`` |
606 | 617 | |
| 618 | The ``max_value`` and ``min_value`` error messages may contain |
| 619 | ``%(limit_value)s``, which will be substituted by the appropriate limit. |
| 620 | |
607 | 621 | Takes two optional arguments for validation: |
608 | 622 | |
609 | 623 | .. attribute:: IntegerField.max_value |
… |
… |
Takes two optional arguments for validation:
|
635 | 649 | of choices. |
636 | 650 | * Error message keys: ``required``, ``invalid_choice``, ``invalid_list`` |
637 | 651 | |
| 652 | For the ``invalid_choice`` error, ``%(value)s`` will be replaced with the |
| 653 | selected choice. |
| 654 | |
638 | 655 | Takes one extra argument, ``choices``, as for ``ChoiceField``. |
639 | 656 | |
640 | 657 | ``NullBooleanField`` |