mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #21548 -- Added FileExtensionValidator and validate_image_file_extension.
This commit is contained in:
committed by
Tim Graham
parent
c9d0a0f7f4
commit
12b4280444
@@ -192,6 +192,9 @@ Models
|
||||
<django.db.models.query.QuerySet.update_or_create>` and
|
||||
:meth:`~django.db.models.query.QuerySet.get_or_create`.
|
||||
|
||||
* :class:`~django.db.models.ImageField` now has a default
|
||||
:data:`~django.core.validators.validate_image_file_extension` validator.
|
||||
|
||||
Requests and Responses
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -237,7 +240,10 @@ URLs
|
||||
Validators
|
||||
~~~~~~~~~~
|
||||
|
||||
* ...
|
||||
* Added :class:`~django.core.validators.FileExtensionValidator` to validate
|
||||
file extensions and
|
||||
:data:`~django.core.validators.validate_image_file_extension` to validate
|
||||
image files.
|
||||
|
||||
.. _backwards-incompatible-1.11:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user