{"issue":{"created_at":"2011-12-01T19:15:53Z","state":"open","updated_at":"2011-12-15T04:55:28Z","user":{"gravatar_id":"846cb146d1f2e3a83f6368eefc978484","id":25442,"url":"https://api.github.com/users/davelowe","avatar_url":"https://secure.gravatar.com/avatar/846cb146d1f2e3a83f6368eefc978484?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"davelowe"},"comments":2,"body":"The intent is great — as I understand it, refresh the spec files when instance is saved because the image may have been updated — but it wreaks havoc when the image spec url accessor isn't used in templates and pre_cache is not set to True.\r\n\r\nWhen pre-cache is True, the spec files are generated immediately after deletion. But if a post_save handler is the desired method to generate spec files when the instance is created (to work well with celery, for instance), and calling the image size directly in templates isn't ideal (in my use-case, because I'm using cloudfiles for spec file storage and there's a second or three lag during this operation) then images vanish on future instance saves and never get regenerated.","assignee":null,"id":2418485,"number":74,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"Calling `generate()` in `post_save` Receiver Doesn't Create Image","html_url":"https://github.com/jdriscoll/django-imagekit/issues/74","closed_at":null,"milestone":null,"url":"https://api.github.com/repos/jdriscoll/django-imagekit/issues/74"},"action":"created","comment":{"created_at":"2011-12-15T04:55:28Z","updated_at":"2011-12-15T04:55:28Z","user":{"gravatar_id":"8704f0a7448d8eebe911af742c4721cb","id":126263,"url":"https://api.github.com/users/matthewwithanm","avatar_url":"https://secure.gravatar.com/avatar/8704f0a7448d8eebe911af742c4721cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"matthewwithanm"},"body":"@davelowe Hope you don't mind that I renamed this issue. I think you've actually uncovered two bugs so I'd like to use this thread to explore the problem of being unable to generate a new image in the `post_save` receiver and #75 to figure out how to deal with unnecessary deletions.","id":3156802,"url":"https://api.github.com/repos/jdriscoll/django-imagekit/issues/comments/3156802"}}