Skip to content

Commit

Permalink
Trying to avoid error matthewwithanm#473 of django-imagekit (for Vesp…
Browse files Browse the repository at this point in the history
…aWatch issue 176).)
  • Loading branch information
niconoe committed Feb 25, 2019
1 parent 3317273 commit b09496b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion imagekit/cachefiles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def _generate(self):
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)
# Commenting the following line to try to circumvent the following issue:
# https://github.com/matthewwithanm/django-imagekit/issues/473
# (see SKYnv comment)
# 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
Expand Down

0 comments on commit b09496b

Please sign in to comment.