Update the 'invalidate_cached_image' to supply a version pk as now required by the version aware 'get_cached_image_name' method
This commit is contained in:
@@ -163,7 +163,7 @@ class Document(models.Model):
|
||||
|
||||
def invalidate_cached_image(self, page):
|
||||
try:
|
||||
os.unlink(self.get_cached_image_name(page)[0])
|
||||
os.unlink(self.get_cached_image_name(page, self.latest_version.pk)[0])
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user