From: Jan Szejko Date: Fri, 31 Mar 2017 11:13:00 +0000 (+0200) Subject: fix for django 1.10 (get_available_name) X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/6eb09805dd1b6a4a3a7305eff38449ebcf5154db?ds=sidebyside;hp=0ba24b411f3a582d7688d591c451f307434a2c3a fix for django 1.10 (get_available_name) --- 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