{"action":"created","issue":{"url":"https://api.github.com/repos/shoopio/shoop/issues/206","labels_url":"https://api.github.com/repos/shoopio/shoop/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/shoopio/shoop/issues/206/comments","events_url":"https://api.github.com/repos/shoopio/shoop/issues/206/events","html_url":"https://github.com/shoopio/shoop/pull/206","id":109668235,"number":206,"title":"Prevent `Shop` being deleted when image was deleted","user":{"login":"Pikkupomo","id":2863405,"avatar_url":"https://avatars.githubusercontent.com/u/2863405?v=3","gravatar_id":"","url":"https://api.github.com/users/Pikkupomo","html_url":"https://github.com/Pikkupomo","followers_url":"https://api.github.com/users/Pikkupomo/followers","following_url":"https://api.github.com/users/Pikkupomo/following{/other_user}","gists_url":"https://api.github.com/users/Pikkupomo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pikkupomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pikkupomo/subscriptions","organizations_url":"https://api.github.com/users/Pikkupomo/orgs","repos_url":"https://api.github.com/users/Pikkupomo/repos","events_url":"https://api.github.com/users/Pikkupomo/events{/privacy}","received_events_url":"https://api.github.com/users/Pikkupomo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-04T07:45:28Z","updated_at":"2015-10-04T12:33:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/shoopio/shoop/pulls/206","html_url":"https://github.com/shoopio/shoop/pull/206","diff_url":"https://github.com/shoopio/shoop/pull/206.diff","patch_url":"https://github.com/shoopio/shoop/pull/206.patch"},"body":"`Shop` and `Category` were both missing `on_delete=models.SET_NULL`. This caused them to be deleted also when attached image was deleted in media browser.\r\n\r\nFixes #205"},"comment":{"url":"https://api.github.com/repos/shoopio/shoop/issues/comments/145346455","html_url":"https://github.com/shoopio/shoop/pull/206#issuecomment-145346455","issue_url":"https://api.github.com/repos/shoopio/shoop/issues/206","id":145346455,"user":{"login":"akx","id":58669,"avatar_url":"https://avatars.githubusercontent.com/u/58669?v=3","gravatar_id":"","url":"https://api.github.com/users/akx","html_url":"https://github.com/akx","followers_url":"https://api.github.com/users/akx/followers","following_url":"https://api.github.com/users/akx/following{/other_user}","gists_url":"https://api.github.com/users/akx/gists{/gist_id}","starred_url":"https://api.github.com/users/akx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akx/subscriptions","organizations_url":"https://api.github.com/users/akx/orgs","repos_url":"https://api.github.com/users/akx/repos","events_url":"https://api.github.com/users/akx/events{/privacy}","received_events_url":"https://api.github.com/users/akx/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T12:33:59Z","updated_at":"2015-10-04T12:33:59Z","body":"Would probably be a good idea to do a search-and-consider pass over all the ForeignKeys... These probably aren't the only badly cascading FKs we have. "}}