Open
Description
Currently (version 1.2), StorageDownloadView
inherits PathDownloadView
.
Should be: StorageDownloadView
makes it easy to PathDownloadView
.
- Add
get_storage()
,get_storage_class
andget_storage_kwargs()
methods toStorageDownloadView
, i.e. make the storage overridable. - By default,
get_storage()
uses Django'sget_storage_class(settings.DEFAULT_STORAGE)
. - In documentation, explain that (deprecated)
PathDownloadView
is aStorageDownloadView
withstorage=FileSystemStorage(location=CUSTOM_LOCATION)
- Deprecate
PathDownloadView
. - Optionally setup a backward-compatible
PathDownloadView
which inheritsStorageDownloadView
and usesFileSystemStorage
as a default.