diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt
index 146ab4d..ae14434 100644
a
|
b
|
methods:
|
81 | 81 | |
82 | 82 | .. currentmodule:: django.core.files.images |
83 | 83 | |
84 | | Additional ``ImageField`` attributes |
| 84 | Additional ``ImageFile`` attributes |
85 | 85 | ------------------------------------ |
86 | 86 | |
87 | 87 | .. class:: ImageFile(file_object) |
… |
… |
above) will also have a couple of extra methods:
|
117 | 117 | >>> car.photo.save('myphoto.jpg', contents, save=True) |
118 | 118 | |
119 | 119 | Note that the ``content`` argument must be an instance of |
120 | | :class:`File` or of a subclass of :class:`File`. |
| 120 | :class:`File` or of a subclass of :class:`File` such as :class:`ContentFile`. |
121 | 121 | |
122 | 122 | .. method:: File.delete([save=True]) |
123 | 123 | |
124 | 124 | Remove the file from the model instance and delete the underlying file. The |
125 | 125 | ``save`` argument works as above. |
| 126 | |
| 127 | ``ContentFile`` objects |
| 128 | ----------------------- |
| 129 | |
| 130 | .. class:: ContentFile(File) |
| 131 | |
| 132 | A ``ContentFile`` is a File-like object that takes string content, rather |
| 133 | than an actual file:: |
| 134 | |
| 135 | from django.core.files import ContentFile |
| 136 | |
| 137 | f1 = ContentFile("my string content") |
| 138 | f2 = ContentFile(u"my unicode content encoded as UTF-8".encode('UTF-8')) |