{"action":"closed","number":52,"pull_request":{"url":"https://api.github.com/repos/jrief/django-admin-sortable2/pulls/52","id":32428259,"html_url":"https://github.com/jrief/django-admin-sortable2/pull/52","diff_url":"https://github.com/jrief/django-admin-sortable2/pull/52.diff","patch_url":"https://github.com/jrief/django-admin-sortable2/pull/52.patch","issue_url":"https://api.github.com/repos/jrief/django-admin-sortable2/issues/52","number":52,"state":"closed","locked":false,"title":"Monkey patch for getqueryset. Fix strange behaviour when order has a default value.","user":{"login":"cstrap","id":146691,"avatar_url":"https://avatars.githubusercontent.com/u/146691?v=3","gravatar_id":"","url":"https://api.github.com/users/cstrap","html_url":"https://github.com/cstrap","followers_url":"https://api.github.com/users/cstrap/followers","following_url":"https://api.github.com/users/cstrap/following{/other_user}","gists_url":"https://api.github.com/users/cstrap/gists{/gist_id}","starred_url":"https://api.github.com/users/cstrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstrap/subscriptions","organizations_url":"https://api.github.com/users/cstrap/orgs","repos_url":"https://api.github.com/users/cstrap/repos","events_url":"https://api.github.com/users/cstrap/events{/privacy}","received_events_url":"https://api.github.com/users/cstrap/received_events","type":"User","site_admin":false},"body":"This PR should be fix the issue #22 with a monkey patch on method ```get_queryset``` on ```SortableAdminMixin.__init__()```.\r\nThen I've found a strange behaviour when the app is used on a particular ```StackedInline``` object, see the code comment.\r\n\r\nCheers","created_at":"2015-04-01T15:11:48Z","updated_at":"2015-06-24T07:54:52Z","closed_at":"2015-06-24T07:54:52Z","merged_at":null,"merge_commit_sha":"3e2de00deb08e02da90c305627a7fbee5b974417","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jrief/django-admin-sortable2/pulls/52/commits","review_comments_url":"https://api.github.com/repos/jrief/django-admin-sortable2/pulls/52/comments","review_comment_url":"https://api.github.com/repos/jrief/django-admin-sortable2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jrief/django-admin-sortable2/issues/52/comments","statuses_url":"https://api.github.com/repos/jrief/django-admin-sortable2/statuses/752c8cea67a16adb18aabeb47dfcdcdae1567143","head":{"label":"cstrap:master","ref":"master","sha":"752c8cea67a16adb18aabeb47dfcdcdae1567143","user":{"login":"cstrap","id":146691,"avatar_url":"https://avatars.githubusercontent.com/u/146691?v=3","gravatar_id":"","url":"https://api.github.com/users/cstrap","html_url":"https://github.com/cstrap","followers_url":"https://api.github.com/users/cstrap/followers","following_url":"https://api.github.com/users/cstrap/following{/other_user}","gists_url":"https://api.github.com/users/cstrap/gists{/gist_id}","starred_url":"https://api.github.com/users/cstrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstrap/subscriptions","organizations_url":"https://api.github.com/users/cstrap/orgs","repos_url":"https://api.github.com/users/cstrap/repos","events_url":"https://api.github.com/users/cstrap/events{/privacy}","received_events_url":"https://api.github.com/users/cstrap/received_events","type":"User","site_admin":false},"repo":{"id":33233158,"name":"django-admin-sortable2","full_name":"cstrap/django-admin-sortable2","owner":{"login":"cstrap","id":146691,"avatar_url":"https://avatars.githubusercontent.com/u/146691?v=3","gravatar_id":"","url":"https://api.github.com/users/cstrap","html_url":"https://github.com/cstrap","followers_url":"https://api.github.com/users/cstrap/followers","following_url":"https://api.github.com/users/cstrap/following{/other_user}","gists_url":"https://api.github.com/users/cstrap/gists{/gist_id}","starred_url":"https://api.github.com/users/cstrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstrap/subscriptions","organizations_url":"https://api.github.com/users/cstrap/orgs","repos_url":"https://api.github.com/users/cstrap/repos","events_url":"https://api.github.com/users/cstrap/events{/privacy}","received_events_url":"https://api.github.com/users/cstrap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cstrap/django-admin-sortable2","description":"Generic drag-and-drop ordering for objects in the Django admin interface","fork":true,"url":"https://api.github.com/repos/cstrap/django-admin-sortable2","forks_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/forks","keys_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/teams","hooks_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/hooks","issue_events_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/issues/events{/number}","events_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/events","assignees_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/assignees{/user}","branches_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/branches{/branch}","tags_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/tags","blobs_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/git/refs{/sha}","trees_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/statuses/{sha}","languages_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/languages","stargazers_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/stargazers","contributors_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/contributors","subscribers_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/subscribers","subscription_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/subscription","commits_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/commits{/sha}","git_commits_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/git/commits{/sha}","comments_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/comments{/number}","issue_comment_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/issues/comments{/number}","contents_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/contents/{+path}","compare_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/merges","archive_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/downloads","issues_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/issues{/number}","pulls_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/pulls{/number}","milestones_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/milestones{/number}","notifications_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/labels{/name}","releases_url":"https://api.github.com/repos/cstrap/django-admin-sortable2/releases{/id}","created_at":"2015-04-01T07:30:00Z","updated_at":"2015-05-06T13:02:42Z","pushed_at":"2015-05-20T08:15:56Z","git_url":"git://github.com/cstrap/django-admin-sortable2.git","ssh_url":"git@github.com:cstrap/django-admin-sortable2.git","clone_url":"https://github.com/cstrap/django-admin-sortable2.git","svn_url":"https://github.com/cstrap/django-admin-sortable2","homepage":null,"size":666,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"jrief:master","ref":"master","sha":"dee7c0cb9b13a74e1f45df35fa13b8a5198ad87f","user":{"login":"jrief","id":1132472,"avatar_url":"https://avatars.githubusercontent.com/u/1132472?v=3","gravatar_id":"","url":"https://api.github.com/users/jrief","html_url":"https://github.com/jrief","followers_url":"https://api.github.com/users/jrief/followers","following_url":"https://api.github.com/users/jrief/following{/other_user}","gists_url":"https://api.github.com/users/jrief/gists{/gist_id}","starred_url":"https://api.github.com/users/jrief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrief/subscriptions","organizations_url":"https://api.github.com/users/jrief/orgs","repos_url":"https://api.github.com/users/jrief/repos","events_url":"https://api.github.com/users/jrief/events{/privacy}","received_events_url":"https://api.github.com/users/jrief/received_events","type":"User","site_admin":false},"repo":{"id":11240449,"name":"django-admin-sortable2","full_name":"jrief/django-admin-sortable2","owner":{"login":"jrief","id":1132472,"avatar_url":"https://avatars.githubusercontent.com/u/1132472?v=3","gravatar_id":"","url":"https://api.github.com/users/jrief","html_url":"https://github.com/jrief","followers_url":"https://api.github.com/users/jrief/followers","following_url":"https://api.github.com/users/jrief/following{/other_user}","gists_url":"https://api.github.com/users/jrief/gists{/gist_id}","starred_url":"https://api.github.com/users/jrief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrief/subscriptions","organizations_url":"https://api.github.com/users/jrief/orgs","repos_url":"https://api.github.com/users/jrief/repos","events_url":"https://api.github.com/users/jrief/events{/privacy}","received_events_url":"https://api.github.com/users/jrief/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jrief/django-admin-sortable2","description":"Generic drag-and-drop ordering for objects in the Django admin interface","fork":false,"url":"https://api.github.com/repos/jrief/django-admin-sortable2","forks_url":"https://api.github.com/repos/jrief/django-admin-sortable2/forks","keys_url":"https://api.github.com/repos/jrief/django-admin-sortable2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jrief/django-admin-sortable2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jrief/django-admin-sortable2/teams","hooks_url":"https://api.github.com/repos/jrief/django-admin-sortable2/hooks","issue_events_url":"https://api.github.com/repos/jrief/django-admin-sortable2/issues/events{/number}","events_url":"https://api.github.com/repos/jrief/django-admin-sortable2/events","assignees_url":"https://api.github.com/repos/jrief/django-admin-sortable2/assignees{/user}","branches_url":"https://api.github.com/repos/jrief/django-admin-sortable2/branches{/branch}","tags_url":"https://api.github.com/repos/jrief/django-admin-sortable2/tags","blobs_url":"https://api.github.com/repos/jrief/django-admin-sortable2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jrief/django-admin-sortable2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jrief/django-admin-sortable2/git/refs{/sha}","trees_url":"https://api.github.com/repos/jrief/django-admin-sortable2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jrief/django-admin-sortable2/statuses/{sha}","languages_url":"https://api.github.com/repos/jrief/django-admin-sortable2/languages","stargazers_url":"https://api.github.com/repos/jrief/django-admin-sortable2/stargazers","contributors_url":"https://api.github.com/repos/jrief/django-admin-sortable2/contributors","subscribers_url":"https://api.github.com/repos/jrief/django-admin-sortable2/subscribers","subscription_url":"https://api.github.com/repos/jrief/django-admin-sortable2/subscription","commits_url":"https://api.github.com/repos/jrief/django-admin-sortable2/commits{/sha}","git_commits_url":"https://api.github.com/repos/jrief/django-admin-sortable2/git/commits{/sha}","comments_url":"https://api.github.com/repos/jrief/django-admin-sortable2/comments{/number}","issue_comment_url":"https://api.github.com/repos/jrief/django-admin-sortable2/issues/comments{/number}","contents_url":"https://api.github.com/repos/jrief/django-admin-sortable2/contents/{+path}","compare_url":"https://api.github.com/repos/jrief/django-admin-sortable2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jrief/django-admin-sortable2/merges","archive_url":"https://api.github.com/repos/jrief/django-admin-sortable2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jrief/django-admin-sortable2/downloads","issues_url":"https://api.github.com/repos/jrief/django-admin-sortable2/issues{/number}","pulls_url":"https://api.github.com/repos/jrief/django-admin-sortable2/pulls{/number}","milestones_url":"https://api.github.com/repos/jrief/django-admin-sortable2/milestones{/number}","notifications_url":"https://api.github.com/repos/jrief/django-admin-sortable2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jrief/django-admin-sortable2/labels{/name}","releases_url":"https://api.github.com/repos/jrief/django-admin-sortable2/releases{/id}","created_at":"2013-07-07T21:26:56Z","updated_at":"2015-06-15T15:29:19Z","pushed_at":"2015-06-23T15:57:15Z","git_url":"git://github.com/jrief/django-admin-sortable2.git","ssh_url":"git@github.com:jrief/django-admin-sortable2.git","clone_url":"https://github.com/jrief/django-admin-sortable2.git","svn_url":"https://github.com/jrief/django-admin-sortable2","homepage":null,"size":1120,"stargazers_count":73,"watchers_count":73,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":15,"forks":35,"open_issues":15,"watchers":73,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jrief/django-admin-sortable2/pulls/52"},"html":{"href":"https://github.com/jrief/django-admin-sortable2/pull/52"},"issue":{"href":"https://api.github.com/repos/jrief/django-admin-sortable2/issues/52"},"comments":{"href":"https://api.github.com/repos/jrief/django-admin-sortable2/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/jrief/django-admin-sortable2/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/jrief/django-admin-sortable2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jrief/django-admin-sortable2/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/jrief/django-admin-sortable2/statuses/752c8cea67a16adb18aabeb47dfcdcdae1567143"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":16,"additions":139,"deletions":50,"changed_files":9}}