mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Fixed #28242 -- Moved ImageField file extension validation to the form field.
This commit is contained in:
parent
6bb3b2bff4
commit
a0c07d77fc
8 changed files with 47 additions and 11 deletions
|
@ -58,3 +58,7 @@ Bugfixes
|
|||
|
||||
* Fixed a regression where ``file_move_safe()`` crashed when moving files to a
|
||||
CIFS mount (:ticket:`28170`).
|
||||
|
||||
* Moved the ``ImageField`` file extension validation added in Django 1.11 from
|
||||
the model field to the form field to reallow the use case of storing images
|
||||
without an extension (:ticket:`28242`).
|
||||
|
|
|
@ -327,6 +327,7 @@ Models
|
|||
|
||||
* :class:`~django.db.models.ImageField` now has a default
|
||||
:data:`~django.core.validators.validate_image_file_extension` validator.
|
||||
(This validator moved to the form field in :doc:`Django 1.11.2 <1.11.2>`.)
|
||||
|
||||
* Added support for time truncation to
|
||||
:class:`~django.db.models.functions.datetime.Trunc` functions.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue