{"action":"created","issue":{"url":"https://api.github.com/repos/edoburu/django-polymorphic-tree/issues/37","labels_url":"https://api.github.com/repos/edoburu/django-polymorphic-tree/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/edoburu/django-polymorphic-tree/issues/37/comments","events_url":"https://api.github.com/repos/edoburu/django-polymorphic-tree/issues/37/events","html_url":"https://github.com/edoburu/django-polymorphic-tree/issues/37","id":71407591,"number":37,"title":"move_up_view/move_down_view issue caused by _tree_manager filtering","user":{"login":"smcoll","id":321438,"avatar_url":"https://avatars.githubusercontent.com/u/321438?v=3","gravatar_id":"","url":"https://api.github.com/users/smcoll","html_url":"https://github.com/smcoll","followers_url":"https://api.github.com/users/smcoll/followers","following_url":"https://api.github.com/users/smcoll/following{/other_user}","gists_url":"https://api.github.com/users/smcoll/gists{/gist_id}","starred_url":"https://api.github.com/users/smcoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smcoll/subscriptions","organizations_url":"https://api.github.com/users/smcoll/orgs","repos_url":"https://api.github.com/users/smcoll/repos","events_url":"https://api.github.com/users/smcoll/events{/privacy}","received_events_url":"https://api.github.com/users/smcoll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-27T21:25:17Z","updated_at":"2015-04-28T13:44:38Z","closed_at":null,"body":"The move up/down arrows in the admin are only working for me when the objects sharing the same level and parent are also the same node type.\r\n\r\nThis appears to be because the `get_previous_sibling()`/`get_next_sibling()` methods from django-mptt are returning querysets only containing the same types of nodes as the original.  Using `_mptt_filter` instead of `filter` at https://github.com/django-mptt/django-mptt/blob/0.7.2/mptt/models.py#L615 seems to solve the problem.\r\n\r\nPerhaps this is an upstream issue (i think i'll post something there) but i don't know if they'll have a compelling reason to make the change.\r\n\r\nDjango==1.7.7\r\ndjango-mptt==0.7.2\r\ndjango-polymorphic==0.7\r\ndjango-polymorphic-tree==1.1"},"comment":{"url":"https://api.github.com/repos/edoburu/django-polymorphic-tree/issues/comments/97068864","html_url":"https://github.com/edoburu/django-polymorphic-tree/issues/37#issuecomment-97068864","issue_url":"https://api.github.com/repos/edoburu/django-polymorphic-tree/issues/37","id":97068864,"user":{"login":"smcoll","id":321438,"avatar_url":"https://avatars.githubusercontent.com/u/321438?v=3","gravatar_id":"","url":"https://api.github.com/users/smcoll","html_url":"https://github.com/smcoll","followers_url":"https://api.github.com/users/smcoll/followers","following_url":"https://api.github.com/users/smcoll/following{/other_user}","gists_url":"https://api.github.com/users/smcoll/gists{/gist_id}","starred_url":"https://api.github.com/users/smcoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smcoll/subscriptions","organizations_url":"https://api.github.com/users/smcoll/orgs","repos_url":"https://api.github.com/users/smcoll/repos","events_url":"https://api.github.com/users/smcoll/events{/privacy}","received_events_url":"https://api.github.com/users/smcoll/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T13:44:38Z","updated_at":"2015-04-28T13:44:38Z","body":"django-mptt marked my ticket as \"wontfix\", so we'll need to work out a resolution on this end.\r\n"}}