Remove the setting STORAGE_FILESTORAGE_LOCATION. Document storage location for the storage.backend.filebasedstorage.FileBasedStorage backdend must now passed via the DOCUMENTS_STORAGE_BACKEND_ARGUMENTS, DOCUMENTS_CACHE_STORAGE_BACKEND_ARGUMENTS, or SIGNATURES_STORAGE_BACKEND_ARGUMENTS if the backend is used to documents, the document image cache and/or document signatures. Use DOCUMENTS_STORAGE_BACKEND_ARGUMENTS = '{ location: <specific_path> }' If no path is specified the backend will default to 'mayan/media/document_storage'.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
@@ -17,8 +17,6 @@ except ImportError:
|
||||
from django.core.files import File
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
|
||||
from ..settings import FILESTORAGE_LOCATION
|
||||
|
||||
|
||||
class CompressedStorage(FileSystemStorage):
|
||||
"""Simple wrapper for the stock Django FileSystemStorage class"""
|
||||
@@ -26,8 +24,8 @@ class CompressedStorage(FileSystemStorage):
|
||||
separator = os.path.sep
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.location = kwargs.pop('location')
|
||||
super(CompressedStorage, self).__init__(*args, **kwargs)
|
||||
self.location = FILESTORAGE_LOCATION
|
||||
|
||||
def save(self, name, content):
|
||||
descriptor = StringIO()
|
||||
|
||||
Reference in New Issue
Block a user