fix for django 1.10 (get_available_name)
authorJan Szejko <janek37@gmail.com>
Fri, 31 Mar 2017 11:13:00 +0000 (13:13 +0200)
committerJan Szejko <janek37@gmail.com>
Fri, 31 Mar 2017 11:13:00 +0000 (13:13 +0200)
apps/dvcs/storage.py

index 080e707..045b780 100755 (executable)
@@ -36,7 +36,7 @@ class GzipFileSystemStorage(FileSystemStorage):
         content = ContentFile(compress(content.read()))
         return super(GzipFileSystemStorage, self)._save(name, content)
 
         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
         if self.exists(name):
             self.delete(name)
         return name