mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #28184 -- Allowed using a callable for FileField and ImageField storage.
This commit is contained in:
@@ -248,6 +248,11 @@ File Storage
|
||||
|
||||
* ``FileSystemStorage.save()`` method now supports :class:`pathlib.Path`.
|
||||
|
||||
* :class:`~django.db.models.FileField` and
|
||||
:class:`~django.db.models.ImageField` now accept a callable for ``storage``.
|
||||
This allows you to modify the used storage at runtime, selecting different
|
||||
storages for different environments, for example.
|
||||
|
||||
File Uploads
|
||||
~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user