Corrected File, ContentFile, and ImageFile signatures in docs.

This commit is contained in:
Adam Johnson 2021-04-15 16:42:06 +01:00 committed by Mariusz Felisiak
parent e3e2276e6f
commit 725ca1fb60
1 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ for basic file handling in Django.
The ``File`` class The ``File`` class
================== ==================
.. class:: File(file_object) .. class:: File(file_object, name=None)
The :class:`File` class is a thin wrapper around a Python The :class:`File` class is a thin wrapper around a Python
:py:term:`file object` with some Django-specific additions. :py:term:`file object` with some Django-specific additions.
@ -91,7 +91,7 @@ The ``File`` class
The ``ContentFile`` class The ``ContentFile`` class
========================= =========================
.. class:: ContentFile(File) .. class:: ContentFile(content, name=None)
The ``ContentFile`` class inherits from :class:`~django.core.files.File`, The ``ContentFile`` class inherits from :class:`~django.core.files.File`,
but unlike :class:`~django.core.files.File` it operates on string content but unlike :class:`~django.core.files.File` it operates on string content
@ -107,7 +107,7 @@ The ``ContentFile`` class
The ``ImageFile`` class The ``ImageFile`` class
======================= =======================
.. class:: ImageFile(file_object) .. class:: ImageFile(file_object, name=None)
Django provides a built-in class specifically for images. Django provides a built-in class specifically for images.
:class:`django.core.files.images.ImageFile` inherits all the attributes :class:`django.core.files.images.ImageFile` inherits all the attributes