mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26495 -- Added name arg to Storage.save()'s File wrapping.
This commit is contained in:
committed by
Tim Graham
parent
65006e0b0b
commit
4d1c229ee5
@@ -48,7 +48,7 @@ class Storage(object):
|
||||
name = content.name
|
||||
|
||||
if not hasattr(content, 'chunks'):
|
||||
content = File(content)
|
||||
content = File(content, name)
|
||||
|
||||
name = self.get_available_name(name, max_length=max_length)
|
||||
name = self._save(name, content)
|
||||
|
||||
Reference in New Issue
Block a user