jdriscoll/django-imagekit — Issue #80: Ikflush tries to run .delete() on spec_files that correspond to a blank ImageField
Author: conanjen
Created: 2011-12-07 05:07:07+00:00
State: open

Running imagekit with django-cumulus, when attempting to run ikflush, it will fail at line 31 in ikflush.py. The imagespecfile correctly identifies itself as , and it's corresponding ImageField is also None.

Attempting to get urls, files, etc etc will all return with errors that the imagefield has no file associated with it.

HOWEVER, when foobar.imagespec is not None is asserted (in the ikflush), it passes. Therefor, it attempts to delete a cached image that it thinks exists, and fails.