Closed fsbraun closed 1 month ago
Fixes #1458.
Django 4.2 introduced the new STORAGES setting. The historic DEFAULT_FILE_STORAGE setting is deprecated and will be removed in Django 5.1.
STORAGES
DEFAULT_FILE_STORAGE
This PR makes use of the STORAGES setting if present, otherwise falls back to DEFAULT_FILE_STORAGE for compatibility with older Django versions.
https://github.com/fsbraun/django-filer/blob/984a45b71654dc5e4b349b076a726aaa96988d86/filer/settings.py#L62-L65
Also, this PR includes the changes from pyupgrade for Python 3.8+
pyupgrade
master
Description
Fixes #1458.
Django 4.2 introduced the new
STORAGES
setting. The historicDEFAULT_FILE_STORAGE
setting is deprecated and will be removed in Django 5.1.This PR makes use of the
STORAGES
setting if present, otherwise falls back toDEFAULT_FILE_STORAGE
for compatibility with older Django versions.https://github.com/fsbraun/django-filer/blob/984a45b71654dc5e4b349b076a726aaa96988d86/filer/settings.py#L62-L65
Also, this PR includes the changes from
pyupgrade
for Python 3.8+Related resources
1458
...
Checklist
master