diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-08-05 15:35:50 +0200 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2024-08-05 10:36:41 -0300 |
| commit | 20bd3f02becc8c8657a23f058b82e8708e9336cc (patch) | |
| tree | 18fa054c77d7642fc7c9ca2322662b7fe0b9c2f7 /docs/ref/forms | |
| parent | 88ebcb1856deef5ab777601a735c9954ac723325 (diff) | |
[5.1.x] Used :pypi: role in docs where appropriate.
Backport of 304d25667433a59409e334a93acaaa9201840508 from main.
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/fields.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index d6bd67e3d4..3ee33c9661 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -813,11 +813,11 @@ For each field, we describe the default widget used if you don't specify * Error message keys: ``required``, ``invalid``, ``missing``, ``empty``, ``invalid_image`` - Using an ``ImageField`` requires that `Pillow`_ is installed with support - for the image formats you use. If you encounter a ``corrupt image`` error - when you upload an image, it usually means that Pillow doesn't understand - its format. To fix this, install the appropriate library and reinstall - Pillow. + Using an ``ImageField`` requires that :pypi:`pillow` is installed with + support for the image formats you use. If you encounter a ``corrupt image`` + error when you upload an image, it usually means that Pillow doesn't + understand its format. To fix this, install the appropriate library and + reinstall Pillow. When you use an ``ImageField`` on a form, you must also remember to :ref:`bind the file data to the form <binding-uploaded-files>`. @@ -863,7 +863,6 @@ For each field, we describe the default widget used if you don't specify image's content type if Pillow can determine it, otherwise it will be set to ``None``. -.. _Pillow: https://pillow.readthedocs.io/en/latest/ .. _Image: https://pillow.readthedocs.io/en/latest/reference/Image.html ``IntegerField`` |
