Finally abstract storage to its own app
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
|
||||
class FileBasedStorage(FileSystemStorage):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(FileBasedStorage, self).__init__(*args, **kwargs)
|
||||
self.location='document_storage'
|
||||
|
||||
Reference in New Issue
Block a user