mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-19 20:41:56 +00:00
Support storage backends that return raw ContentFile without name
This commit is contained in:
parent
0a1c8f57e7
commit
c4dc9f3883
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ class AbstractImage(models.Model, TagSearchable):
|
|||
generated_image = filter.run(self, BytesIO())
|
||||
|
||||
# Generate filename
|
||||
input_filename = os.path.basename(self.file.file.name)
|
||||
input_filename = os.path.basename(self.file.name)
|
||||
input_filename_without_extension, input_extension = os.path.splitext(input_filename)
|
||||
|
||||
output_extension = '.'.join([vary_key, filter.spec]) + input_extension
|
||||
|
|
|
|||
Loading…
Reference in a new issue