From 681d2599ee224826de0050f92f65fdf96bb6a0ca Mon Sep 17 00:00:00 2001 From: Arne de Laat Date: Tue, 6 Jun 2017 10:57:08 +0200 Subject: Fixed #28165 -- Ignored case in FileExtensionValidator's allowed_extensions. --- docs/ref/validators.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt index 8148dd6f7a..0136fb45a3 100644 --- a/docs/ref/validators.txt +++ b/docs/ref/validators.txt @@ -286,6 +286,7 @@ to, or in lieu of custom ``field.clean()`` methods. Raises a :exc:`~django.core.exceptions.ValidationError` with a code of ``'invalid_extension'`` if the extension of ``value.name`` (``value`` is a :class:`~django.core.files.File`) isn't found in ``allowed_extensions``. + The extension is compared case-insensitively with ``allowed_extensions``. .. warning:: -- cgit v1.3