{"action":"closed","number":29,"pull_request":{"url":"https://api.github.com/repos/un1t/django-cleanup/pulls/29","id":49691754,"html_url":"https://github.com/un1t/django-cleanup/pull/29","diff_url":"https://github.com/un1t/django-cleanup/pull/29.diff","patch_url":"https://github.com/un1t/django-cleanup/pull/29.patch","issue_url":"https://api.github.com/repos/un1t/django-cleanup/issues/29","number":29,"state":"closed","locked":false,"title":"Drop Django 1.6 support and reorganize code.","user":{"login":"vinnyrose","id":94764,"avatar_url":"https://avatars.githubusercontent.com/u/94764?v=3","gravatar_id":"","url":"https://api.github.com/users/vinnyrose","html_url":"https://github.com/vinnyrose","followers_url":"https://api.github.com/users/vinnyrose/followers","following_url":"https://api.github.com/users/vinnyrose/following{/other_user}","gists_url":"https://api.github.com/users/vinnyrose/gists{/gist_id}","starred_url":"https://api.github.com/users/vinnyrose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinnyrose/subscriptions","organizations_url":"https://api.github.com/users/vinnyrose/orgs","repos_url":"https://api.github.com/users/vinnyrose/repos","events_url":"https://api.github.com/users/vinnyrose/events{/privacy}","received_events_url":"https://api.github.com/users/vinnyrose/received_events","type":"User","site_admin":false},"body":"Move `models.py` to `handlers.py`.\r\nAdd back the original `pre_save` as a fallback.\r\nMake the cache into its own module in `cache.py` with related functions.\r\nMake a public module in `cleanup.py` to manually refresh the instance cache.\r\nWorkaround a bug in `refresh_from_db` which leaves FileFields with reference\r\nto the wrong instance. (Reported: khamaileon)\r\nWorkaround a bug in the FileFields descriptor which doesn't recover Fields or\r\nstorage classes after a pickle/unpickle. (Reported: khamaileon)\r\nWorkaround behavior of a FieldFile's delete method which sets the\r\nfield to `None` on the instance. (Reported: Pierre Chiquet)\r\nAdd tests for all of these workarounds.","created_at":"2015-11-04T14:04:56Z","updated_at":"2015-12-02T18:21:13Z","closed_at":"2015-12-02T18:21:13Z","merged_at":"2015-12-02T18:21:13Z","merge_commit_sha":"620bd04da40f8e82bd5457d4b85d87973d49d54e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/un1t/django-cleanup/pulls/29/commits","review_comments_url":"https://api.github.com/repos/un1t/django-cleanup/pulls/29/comments","review_comment_url":"https://api.github.com/repos/un1t/django-cleanup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/un1t/django-cleanup/issues/29/comments","statuses_url":"https://api.github.com/repos/un1t/django-cleanup/statuses/b100ddb303c55c36bbdcaf8522a3ba3b3cfdd4d5","head":{"label":"vinnyrose:drop_django16","ref":"drop_django16","sha":"b100ddb303c55c36bbdcaf8522a3ba3b3cfdd4d5","user":{"login":"vinnyrose","id":94764,"avatar_url":"https://avatars.githubusercontent.com/u/94764?v=3","gravatar_id":"","url":"https://api.github.com/users/vinnyrose","html_url":"https://github.com/vinnyrose","followers_url":"https://api.github.com/users/vinnyrose/followers","following_url":"https://api.github.com/users/vinnyrose/following{/other_user}","gists_url":"https://api.github.com/users/vinnyrose/gists{/gist_id}","starred_url":"https://api.github.com/users/vinnyrose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinnyrose/subscriptions","organizations_url":"https://api.github.com/users/vinnyrose/orgs","repos_url":"https://api.github.com/users/vinnyrose/repos","events_url":"https://api.github.com/users/vinnyrose/events{/privacy}","received_events_url":"https://api.github.com/users/vinnyrose/received_events","type":"User","site_admin":false},"repo":{"id":43321586,"name":"django-cleanup","full_name":"vinnyrose/django-cleanup","owner":{"login":"vinnyrose","id":94764,"avatar_url":"https://avatars.githubusercontent.com/u/94764?v=3","gravatar_id":"","url":"https://api.github.com/users/vinnyrose","html_url":"https://github.com/vinnyrose","followers_url":"https://api.github.com/users/vinnyrose/followers","following_url":"https://api.github.com/users/vinnyrose/following{/other_user}","gists_url":"https://api.github.com/users/vinnyrose/gists{/gist_id}","starred_url":"https://api.github.com/users/vinnyrose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinnyrose/subscriptions","organizations_url":"https://api.github.com/users/vinnyrose/orgs","repos_url":"https://api.github.com/users/vinnyrose/repos","events_url":"https://api.github.com/users/vinnyrose/events{/privacy}","received_events_url":"https://api.github.com/users/vinnyrose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vinnyrose/django-cleanup","description":"Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion.","fork":true,"url":"https://api.github.com/repos/vinnyrose/django-cleanup","forks_url":"https://api.github.com/repos/vinnyrose/django-cleanup/forks","keys_url":"https://api.github.com/repos/vinnyrose/django-cleanup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinnyrose/django-cleanup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinnyrose/django-cleanup/teams","hooks_url":"https://api.github.com/repos/vinnyrose/django-cleanup/hooks","issue_events_url":"https://api.github.com/repos/vinnyrose/django-cleanup/issues/events{/number}","events_url":"https://api.github.com/repos/vinnyrose/django-cleanup/events","assignees_url":"https://api.github.com/repos/vinnyrose/django-cleanup/assignees{/user}","branches_url":"https://api.github.com/repos/vinnyrose/django-cleanup/branches{/branch}","tags_url":"https://api.github.com/repos/vinnyrose/django-cleanup/tags","blobs_url":"https://api.github.com/repos/vinnyrose/django-cleanup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinnyrose/django-cleanup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinnyrose/django-cleanup/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinnyrose/django-cleanup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinnyrose/django-cleanup/statuses/{sha}","languages_url":"https://api.github.com/repos/vinnyrose/django-cleanup/languages","stargazers_url":"https://api.github.com/repos/vinnyrose/django-cleanup/stargazers","contributors_url":"https://api.github.com/repos/vinnyrose/django-cleanup/contributors","subscribers_url":"https://api.github.com/repos/vinnyrose/django-cleanup/subscribers","subscription_url":"https://api.github.com/repos/vinnyrose/django-cleanup/subscription","commits_url":"https://api.github.com/repos/vinnyrose/django-cleanup/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinnyrose/django-cleanup/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinnyrose/django-cleanup/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinnyrose/django-cleanup/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinnyrose/django-cleanup/contents/{+path}","compare_url":"https://api.github.com/repos/vinnyrose/django-cleanup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinnyrose/django-cleanup/merges","archive_url":"https://api.github.com/repos/vinnyrose/django-cleanup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinnyrose/django-cleanup/downloads","issues_url":"https://api.github.com/repos/vinnyrose/django-cleanup/issues{/number}","pulls_url":"https://api.github.com/repos/vinnyrose/django-cleanup/pulls{/number}","milestones_url":"https://api.github.com/repos/vinnyrose/django-cleanup/milestones{/number}","notifications_url":"https://api.github.com/repos/vinnyrose/django-cleanup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinnyrose/django-cleanup/labels{/name}","releases_url":"https://api.github.com/repos/vinnyrose/django-cleanup/releases{/id}","created_at":"2015-09-28T19:19:01Z","updated_at":"2015-09-28T19:19:02Z","pushed_at":"2015-11-04T14:03:41Z","git_url":"git://github.com/vinnyrose/django-cleanup.git","ssh_url":"git@github.com:vinnyrose/django-cleanup.git","clone_url":"https://github.com/vinnyrose/django-cleanup.git","svn_url":"https://github.com/vinnyrose/django-cleanup","homepage":"","size":256,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"un1t:master","ref":"master","sha":"138a68ebd01fd4606461490c6040e496621536cd","user":{"login":"un1t","id":440376,"avatar_url":"https://avatars.githubusercontent.com/u/440376?v=3","gravatar_id":"","url":"https://api.github.com/users/un1t","html_url":"https://github.com/un1t","followers_url":"https://api.github.com/users/un1t/followers","following_url":"https://api.github.com/users/un1t/following{/other_user}","gists_url":"https://api.github.com/users/un1t/gists{/gist_id}","starred_url":"https://api.github.com/users/un1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/un1t/subscriptions","organizations_url":"https://api.github.com/users/un1t/orgs","repos_url":"https://api.github.com/users/un1t/repos","events_url":"https://api.github.com/users/un1t/events{/privacy}","received_events_url":"https://api.github.com/users/un1t/received_events","type":"User","site_admin":false},"repo":{"id":5410782,"name":"django-cleanup","full_name":"un1t/django-cleanup","owner":{"login":"un1t","id":440376,"avatar_url":"https://avatars.githubusercontent.com/u/440376?v=3","gravatar_id":"","url":"https://api.github.com/users/un1t","html_url":"https://github.com/un1t","followers_url":"https://api.github.com/users/un1t/followers","following_url":"https://api.github.com/users/un1t/following{/other_user}","gists_url":"https://api.github.com/users/un1t/gists{/gist_id}","starred_url":"https://api.github.com/users/un1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/un1t/subscriptions","organizations_url":"https://api.github.com/users/un1t/orgs","repos_url":"https://api.github.com/users/un1t/repos","events_url":"https://api.github.com/users/un1t/events{/privacy}","received_events_url":"https://api.github.com/users/un1t/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/un1t/django-cleanup","description":"Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion.","fork":false,"url":"https://api.github.com/repos/un1t/django-cleanup","forks_url":"https://api.github.com/repos/un1t/django-cleanup/forks","keys_url":"https://api.github.com/repos/un1t/django-cleanup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/un1t/django-cleanup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/un1t/django-cleanup/teams","hooks_url":"https://api.github.com/repos/un1t/django-cleanup/hooks","issue_events_url":"https://api.github.com/repos/un1t/django-cleanup/issues/events{/number}","events_url":"https://api.github.com/repos/un1t/django-cleanup/events","assignees_url":"https://api.github.com/repos/un1t/django-cleanup/assignees{/user}","branches_url":"https://api.github.com/repos/un1t/django-cleanup/branches{/branch}","tags_url":"https://api.github.com/repos/un1t/django-cleanup/tags","blobs_url":"https://api.github.com/repos/un1t/django-cleanup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/un1t/django-cleanup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/un1t/django-cleanup/git/refs{/sha}","trees_url":"https://api.github.com/repos/un1t/django-cleanup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/un1t/django-cleanup/statuses/{sha}","languages_url":"https://api.github.com/repos/un1t/django-cleanup/languages","stargazers_url":"https://api.github.com/repos/un1t/django-cleanup/stargazers","contributors_url":"https://api.github.com/repos/un1t/django-cleanup/contributors","subscribers_url":"https://api.github.com/repos/un1t/django-cleanup/subscribers","subscription_url":"https://api.github.com/repos/un1t/django-cleanup/subscription","commits_url":"https://api.github.com/repos/un1t/django-cleanup/commits{/sha}","git_commits_url":"https://api.github.com/repos/un1t/django-cleanup/git/commits{/sha}","comments_url":"https://api.github.com/repos/un1t/django-cleanup/comments{/number}","issue_comment_url":"https://api.github.com/repos/un1t/django-cleanup/issues/comments{/number}","contents_url":"https://api.github.com/repos/un1t/django-cleanup/contents/{+path}","compare_url":"https://api.github.com/repos/un1t/django-cleanup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/un1t/django-cleanup/merges","archive_url":"https://api.github.com/repos/un1t/django-cleanup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/un1t/django-cleanup/downloads","issues_url":"https://api.github.com/repos/un1t/django-cleanup/issues{/number}","pulls_url":"https://api.github.com/repos/un1t/django-cleanup/pulls{/number}","milestones_url":"https://api.github.com/repos/un1t/django-cleanup/milestones{/number}","notifications_url":"https://api.github.com/repos/un1t/django-cleanup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/un1t/django-cleanup/labels{/name}","releases_url":"https://api.github.com/repos/un1t/django-cleanup/releases{/id}","created_at":"2012-08-14T09:27:02Z","updated_at":"2015-11-27T20:34:25Z","pushed_at":"2015-12-02T18:21:13Z","git_url":"git://github.com/un1t/django-cleanup.git","ssh_url":"git@github.com:un1t/django-cleanup.git","clone_url":"https://github.com/un1t/django-cleanup.git","svn_url":"https://github.com/un1t/django-cleanup","homepage":"","size":693,"stargazers_count":99,"watchers_count":99,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":5,"forks":22,"open_issues":5,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/un1t/django-cleanup/pulls/29"},"html":{"href":"https://github.com/un1t/django-cleanup/pull/29"},"issue":{"href":"https://api.github.com/repos/un1t/django-cleanup/issues/29"},"comments":{"href":"https://api.github.com/repos/un1t/django-cleanup/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/un1t/django-cleanup/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/un1t/django-cleanup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/un1t/django-cleanup/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/un1t/django-cleanup/statuses/b100ddb303c55c36bbdcaf8522a3ba3b3cfdd4d5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"un1t","id":440376,"avatar_url":"https://avatars.githubusercontent.com/u/440376?v=3","gravatar_id":"","url":"https://api.github.com/users/un1t","html_url":"https://github.com/un1t","followers_url":"https://api.github.com/users/un1t/followers","following_url":"https://api.github.com/users/un1t/following{/other_user}","gists_url":"https://api.github.com/users/un1t/gists{/gist_id}","starred_url":"https://api.github.com/users/un1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/un1t/subscriptions","organizations_url":"https://api.github.com/users/un1t/orgs","repos_url":"https://api.github.com/users/un1t/repos","events_url":"https://api.github.com/users/un1t/events{/privacy}","received_events_url":"https://api.github.com/users/un1t/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":401,"deletions":148,"changed_files":12}}