Skip to content

Commit

Permalink
Corrected File and ContentFile signatures in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Apr 15, 2021
1 parent e3e2276 commit 725b30e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ref/files/file.txt
Original file line number Diff line number Diff line change
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(file_object, 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 Down

0 comments on commit 725b30e

Please sign in to comment.