mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-04-16 03:01:00 +00:00
Reset content pointer
This commit is contained in:
parent
906fbbd463
commit
6db082bca2
1 changed files with 3 additions and 0 deletions
|
|
@ -74,6 +74,9 @@ class ImageCacheFile(BaseIKFile, ImageFile):
|
|||
|
||||
actual_name = self.storage.save(self.name, content)
|
||||
|
||||
# We're going to reuse the generated file, so we need to reset the pointer.
|
||||
content.seek(0)
|
||||
|
||||
# Store the generated file. If we don't do this, the next time the
|
||||
# "file" attribute is accessed, it will result in a call to the storage
|
||||
# backend (in ``BaseIKFile._get_file``). Since we already have the
|
||||
|
|
|
|||
Loading…
Reference in a new issue