summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2021-04-15 16:42:06 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-04-16 06:17:45 +0200
commit725ca1fb60da2ef1bb6db146cd2d735591e75fbd (patch)
tree9bddc0349c13fcbcf294121549360bea4543885b /docs/ref
parente3e2276e6fe6fd77e4fbdeeb2a287288d31de3bb (diff)
Corrected File, ContentFile, and ImageFile signatures in docs.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/files/file.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt
index 3502488722..63f5a9337a 100644
--- a/docs/ref/files/file.txt
+++ b/docs/ref/files/file.txt
@@ -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.
@@ -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
@@ -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