summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2024-08-05 15:35:50 +0200
committerNatalia <124304+nessita@users.noreply.github.com>2024-08-05 10:36:41 -0300
commit20bd3f02becc8c8657a23f058b82e8708e9336cc (patch)
tree18fa054c77d7642fc7c9ca2322662b7fe0b9c2f7 /docs/ref/models
parent88ebcb1856deef5ab777601a735c9954ac723325 (diff)
[5.1.x] Used :pypi: role in docs where appropriate.
Backport of 304d25667433a59409e334a93acaaa9201840508 from main.
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/fields.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index f76ee26a70..069ecdbabb 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -12,8 +12,8 @@ This document contains all the API references of :class:`Field` including the
.. seealso::
- If the built-in fields don't do the trick, you can try `django-localflavor
- <https://github.com/django/django-localflavor>`_ (`documentation
+ If the built-in fields don't do the trick, you can try
+ :pypi:`django-localflavor` (`documentation
<https://django-localflavor.readthedocs.io/>`_), which contains assorted
pieces of code that are useful for particular countries and cultures.
@@ -1369,9 +1369,7 @@ following optional arguments:
Name of a model field which is auto-populated with the width of the image
each time an image object is set.
-Requires the `Pillow`_ library.
-
-.. _Pillow: https://pillow.readthedocs.io/en/latest/
+Requires the :pypi:`pillow` library.
:class:`ImageField` instances are created in your database as ``varchar``
columns with a default max length of 100 characters. As with other fields, you