From 20bd3f02becc8c8657a23f058b82e8708e9336cc Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 5 Aug 2024 15:35:50 +0200 Subject: [5.1.x] Used :pypi: role in docs where appropriate. Backport of 304d25667433a59409e334a93acaaa9201840508 from main. --- docs/ref/models/fields.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'docs/ref/models') 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 - `_ (`documentation + If the built-in fields don't do the trick, you can try + :pypi:`django-localflavor` (`documentation `_), 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 -- cgit v1.3