Hi,
I have a Django model with a picture (ImageField) and then a thumbnail (ImageSpecField) that uses picture as its source.
I'm overriding the model's
save() method and, after its initial save, moving the original image file to a new location, updating
picture.name to reflect this, and saving the model again.
This seems to work OK unless I'm using the Optimistic Cachefile Strategy which (I think) causes the ImageSpecField to generate the thumbnail file on save – it only knows the original file's original path, so this fails with a "The file cannot be reopened" error.
Is there some way I can tell ImageSpecField where its source field's image file is now located? I've tried to work it out from reading its code but can't figure it out.
Thanks,
Phil