Skip to content
Snippets Groups Projects
Commit 654752c5 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[common] Fix Django 1.10 compatibility warning

parent fd63e4de
No related branches found
No related tags found
1 merge request!194Scheduler
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment