Fixed #33842 -- Used :source: role for links to repo files on GitHub.

This commit is contained in:
Ramil Yanbulatov 2022-06-30 15:08:49 +03:00 committed by Carlton Gibson
parent f3a06b06b5
commit c6290bae9d
17 changed files with 28 additions and 27 deletions

View file

@ -724,7 +724,7 @@ serialization formats. Here are a couple of tips to make things go more
smoothly:
#. Look at the existing Django fields (in
:file:`django/db/models/fields/__init__.py`) for inspiration. Try to find
:source:`django/db/models/fields/__init__.py`) for inspiration. Try to find
a field that's similar to what you want and extend it a little bit,
instead of creating an entirely new field from scratch.
@ -761,7 +761,7 @@ In addition to the above details, there are a few guidelines which can greatly
improve the efficiency and readability of the field's code.
#. The source for Django's own ``ImageField`` (in
``django/db/models/fields/files.py``) is a great example of how to
:source:`django/db/models/fields/files.py`) is a great example of how to
subclass ``FileField`` to support a particular type of file, as it
incorporates all of the techniques described above.