Commit 654752c5 authored by André Anjos's avatar André Anjos 💬

[common] Fix Django 1.10 compatibility warning

parent fd63e4de
......@@ -38,7 +38,7 @@ class OverwriteStorage(FileSystemStorage):
def __init__(self, *args, **kwargs):
super(OverwriteStorage, self).__init__(*args, **kwargs)
def get_available_name(self, name):
def get_available_name(self, name, max_length=None):
# If the filename already exists, remove it
if self.exists(name): self.delete(name)
return name
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment