fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ba24b4
)
fix for django 1.10 (get_available_name)
author
Jan Szejko
<janek37@gmail.com>
Fri, 31 Mar 2017 11:13:00 +0000
(13:13 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Fri, 31 Mar 2017 11:13:00 +0000
(13:13 +0200)
apps/dvcs/storage.py
patch
|
blob
|
history
diff --git
a/apps/dvcs/storage.py
b/apps/dvcs/storage.py
index
080e707
..
045b780
100755
(executable)
--- 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