From 6eb09805dd1b6a4a3a7305eff38449ebcf5154db Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 31 Mar 2017 13:13:00 +0200 Subject: [PATCH] fix for django 1.10 (get_available_name) --- apps/dvcs/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dvcs/storage.py b/apps/dvcs/storage.py index 080e7077..045b780a 100755 --- a/apps/dvcs/storage.py +++ b/apps/dvcs/storage.py @@ -36,7 +36,7 @@ class GzipFileSystemStorage(FileSystemStorage): content = ContentFile(compress(content.read())) return super(GzipFileSystemStorage, self)._save(name, content) - def get_available_name(self, name): + def get_available_name(self, name, max_length=None): if self.exists(name): self.delete(name) return name -- 2.20.1