Skip to content

Commit c849cee

Browse files
committed
passed max_length argument to get_available_name in django storage. caused TypeError upon being invoked.
1 parent 44f6599 commit c849cee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/backend/djacket/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class OverwriteStorage(FileSystemStorage):
99
Overwrites to a file if it exists on file system.
1010
"""
1111

12-
def get_available_name(self, name):
12+
def get_available_name(self, name, max_length=None):
1313
"""
1414
If a file with the given name exists in MEDIA_ROOT,
1515
it will be removed otherwise it's name is returned.

0 commit comments

Comments
 (0)