File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -288,8 +288,8 @@ to, or in lieu of custom ``field.clean()`` methods.
288
288
.. versionadded:: 1.11
289
289
290
290
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
291
- ``'invalid_extension'`` if the ``value`` cannot be found in
292
- ``allowed_extensions``.
291
+ ``'invalid_extension'`` if the extension of ``value.name `` (``value`` is
292
+ a :class:`~django.core.files.File`) isn't found in ``allowed_extensions``.
293
293
294
294
.. warning::
295
295
@@ -304,5 +304,6 @@ to, or in lieu of custom ``field.clean()`` methods.
304
304
305
305
.. versionadded:: 1.11
306
306
307
- Uses Pillow to ensure that the ``value`` is `a valid image extension
307
+ Uses Pillow to ensure that ``value.name`` (``value`` is a
308
+ :class:`~django.core.files.File`) has `a valid image extension
308
309
<https://pillow.readthedocs.io/en/latest/handbook/image-file-formats.html>`_.
You can’t perform that action at this time.
0 commit comments