Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected File, ContentFile, and ImageFile signatures in docs. #14272

Merged
merged 1 commit into from Apr 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/ref/files/file.txt
Expand Up @@ -10,7 +10,7 @@ for basic file handling in Django.
The ``File`` class
==================

.. class:: File(file_object)
.. 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.
Expand Down Expand Up @@ -91,7 +91,7 @@ The ``File`` class
The ``ContentFile`` class
=========================

.. class:: ContentFile(File)
.. class:: ContentFile(content, name=None)

The ``ContentFile`` class inherits from :class:`~django.core.files.File`,
but unlike :class:`~django.core.files.File` it operates on string content
Expand All @@ -107,7 +107,7 @@ The ``ContentFile`` class
The ``ImageFile`` class
=======================

.. class:: ImageFile(file_object)
.. class:: ImageFile(file_object, name=None)

Django provides a built-in class specifically for images.
:class:`django.core.files.images.ImageFile` inherits all the attributes
Expand Down