Fixed Django 1.8+ deprecation warning for Storage.get_available_name
See https://docs.djangoproject.com/en/1.8/releases/1.8/#file-storage
This commit is contained in:
@@ -36,7 +36,7 @@ class CompressorFileStorage(FileSystemStorage):
|
||||
def modified_time(self, name):
|
||||
return datetime.fromtimestamp(os.path.getmtime(self.path(name)))
|
||||
|
||||
def get_available_name(self, name):
|
||||
def get_available_name(self, name, max_length=None):
|
||||
"""
|
||||
Deletes the given file if it exists.
|
||||
"""
|
||||
|
Reference in New Issue
Block a user