{"action":"created","issue":{"url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/81","repository_url":"https://api.github.com/repos/codingjoe/django-stdimage","labels_url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/81/comments","events_url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/81/events","html_url":"https://github.com/codingjoe/django-stdimage/pull/81","id":150685814,"number":81,"title":"Fix #80","user":{"login":"vshab","id":6755908,"avatar_url":"https://avatars.githubusercontent.com/u/6755908?v=3","gravatar_id":"","url":"https://api.github.com/users/vshab","html_url":"https://github.com/vshab","followers_url":"https://api.github.com/users/vshab/followers","following_url":"https://api.github.com/users/vshab/following{/other_user}","gists_url":"https://api.github.com/users/vshab/gists{/gist_id}","starred_url":"https://api.github.com/users/vshab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vshab/subscriptions","organizations_url":"https://api.github.com/users/vshab/orgs","repos_url":"https://api.github.com/users/vshab/repos","events_url":"https://api.github.com/users/vshab/events{/privacy}","received_events_url":"https://api.github.com/users/vshab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-24T18:10:27Z","updated_at":"2016-04-26T19:28:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/codingjoe/django-stdimage/pulls/81","html_url":"https://github.com/codingjoe/django-stdimage/pull/81","diff_url":"https://github.com/codingjoe/django-stdimage/pull/81.diff","patch_url":"https://github.com/codingjoe/django-stdimage/pull/81.patch"},"body":"Support custom render_variations in manage.py rendervariations\r\nFixes #80"},"comment":{"url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/comments/214859464","html_url":"https://github.com/codingjoe/django-stdimage/pull/81#issuecomment-214859464","issue_url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/81","id":214859464,"user":{"login":"vshab","id":6755908,"avatar_url":"https://avatars.githubusercontent.com/u/6755908?v=3","gravatar_id":"","url":"https://api.github.com/users/vshab","html_url":"https://github.com/vshab","followers_url":"https://api.github.com/users/vshab/followers","following_url":"https://api.github.com/users/vshab/following{/other_user}","gists_url":"https://api.github.com/users/vshab/gists{/gist_id}","starred_url":"https://api.github.com/users/vshab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vshab/subscriptions","organizations_url":"https://api.github.com/users/vshab/orgs","repos_url":"https://api.github.com/users/vshab/repos","events_url":"https://api.github.com/users/vshab/events{/privacy}","received_events_url":"https://api.github.com/users/vshab/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T19:28:42Z","updated_at":"2016-04-26T19:28:42Z","body":"@codingjoe done.\r\nOne thing I wanted to note is replace flag is now inaccessible in custom render_variations. I think there are three ways to solve this:\r\n1. Pass replace as a parameter in render_variations.\r\n2. Check replace before render_variations call and delete existing files if true.\r\n3. Refactor render_variations into render_variation and call it per variation if required.\r\n\r\n3 is the best in my opinion but breaks API. 2 - is a bit hacky workaround. 1 - I like least as it leverage file management logic onto library users.\r\n\r\nThanks,\r\nVladislav. \r\n"}}