diff options
| author | SaJH <wogur981208@gmail.com> | 2025-08-26 00:50:53 +0900 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-08-28 08:52:43 +0200 |
| commit | 3c0c54351b58e9386375d2bd7a8c60dadc4bb6e8 (patch) | |
| tree | 38a78ca516fc998ae29818fa7950af5278bc7c9b /docs/ref/files | |
| parent | 1285de557b0b8b9c5ebe5de0114b2da5abe60f80 (diff) | |
Fixed #36570 -- Removed unnecessary :py domain from documentation roles.
Signed-off-by: SaJH <wogur981208@gmail.com>
Diffstat (limited to 'docs/ref/files')
| -rw-r--r-- | docs/ref/files/file.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt index 6fd56c227b..701b2e5b37 100644 --- a/docs/ref/files/file.txt +++ b/docs/ref/files/file.txt @@ -13,7 +13,7 @@ The ``File`` class .. class:: File(file_object, name=None) The :class:`File` class is a thin wrapper around a Python - :py:term:`file object` with some Django-specific additions. + :term:`file object` with some Django-specific additions. Internally, Django uses this class when it needs to represent a file. :class:`File` objects have the following attributes and methods: @@ -29,14 +29,14 @@ The ``File`` class .. attribute:: file - The underlying :py:term:`file object` that this class wraps. + The underlying :term:`file object` that this class wraps. .. admonition:: Be careful with this attribute in subclasses. Some subclasses of :class:`File`, including :class:`~django.core.files.base.ContentFile` and :class:`~django.db.models.fields.files.FieldFile`, may replace this - attribute with an object other than a Python :py:term:`file + attribute with an object other than a Python :term:`file object`. In these cases, this attribute may itself be a :class:`File` subclass (and not necessarily the same subclass). Whenever possible, use the attributes and methods of the subclass |
