Another Step in the Quest to clean up the code base.

This commit is contained in:
2017-09-08 07:19:50 +02:00
parent ce218080b2
commit b3ab9798b5
229 changed files with 1915 additions and 15175 deletions

View File

@@ -20,7 +20,6 @@ STATUS_CHOICES = (
)
class OverwriteStorage(FileSystemStorage):
"""
Returns same name for existing file and deletes existing file on save.
@@ -31,5 +30,5 @@ class OverwriteStorage(FileSystemStorage):
self.delete(name)
return super(OverwriteStorage, self)._save(name, content)
def get_available_name(self, name):
def get_available_name(self, name, max_length=None):
return name