{"action":"created","issue":{"url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/118","labels_url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/118/comments","events_url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/118/events","html_url":"https://github.com/crucialfelix/django-ajax-selects/issues/118","id":68056718,"number":118,"title":"Add another popup doesn't add `?_popup=1` to url in Django 1.8","user":{"login":"unklphil","id":2317574,"avatar_url":"https://avatars.githubusercontent.com/u/2317574?v=3","gravatar_id":"","url":"https://api.github.com/users/unklphil","html_url":"https://github.com/unklphil","followers_url":"https://api.github.com/users/unklphil/followers","following_url":"https://api.github.com/users/unklphil/following{/other_user}","gists_url":"https://api.github.com/users/unklphil/gists{/gist_id}","starred_url":"https://api.github.com/users/unklphil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unklphil/subscriptions","organizations_url":"https://api.github.com/users/unklphil/orgs","repos_url":"https://api.github.com/users/unklphil/repos","events_url":"https://api.github.com/users/unklphil/events{/privacy}","received_events_url":"https://api.github.com/users/unklphil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-13T09:45:42Z","updated_at":"2015-05-18T12:05:18Z","closed_at":null,"body":"Using the included example, when adding a `Song` object at `http://localhost:8000/admin/example/song/add/`, there is a field for selecting a `Group` foreign key with a \"+ add\" link next to it.\r\n\r\nIn Django < 1.8, when clicking on the link, a popup opens with the url `http://localhost:8000/admin/lookups/add_popup/example/group?_popup=1` and when saving the `Group`, the popup closes and the `Group` field is populated in the `Song` form.\r\n\r\nHowever in Django >= 1.8 the popup url is `http://localhost:8000/admin/lookups/add_popup/example/group` (note the missing `?_popup=1`) and when saving the `Group`, the popup redirects to the `Group` and doesn't populate the `Song` form's `Group` field.\r\n\r\n~~Presumably some admin javascript changed in the Django 1.8 update, but I haven't yet tracked it down.~~\r\n\r\nEDIT: It looks like the `showAddAnotherPopup`/`showRelatedObjectPopup` has [changed](https://github.com/django/django/blob/1.8/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js#L60) and it [no longer adds the _popup parameter](https://github.com/django/django/blob/1.7.7/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js#L59)"},"comment":{"url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/comments/103038702","html_url":"https://github.com/crucialfelix/django-ajax-selects/issues/118#issuecomment-103038702","issue_url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/118","id":103038702,"user":{"login":"riklaunim","id":1822699,"avatar_url":"https://avatars.githubusercontent.com/u/1822699?v=3","gravatar_id":"","url":"https://api.github.com/users/riklaunim","html_url":"https://github.com/riklaunim","followers_url":"https://api.github.com/users/riklaunim/followers","following_url":"https://api.github.com/users/riklaunim/following{/other_user}","gists_url":"https://api.github.com/users/riklaunim/gists{/gist_id}","starred_url":"https://api.github.com/users/riklaunim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riklaunim/subscriptions","organizations_url":"https://api.github.com/users/riklaunim/orgs","repos_url":"https://api.github.com/users/riklaunim/repos","events_url":"https://api.github.com/users/riklaunim/events{/privacy}","received_events_url":"https://api.github.com/users/riklaunim/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T12:05:18Z","updated_at":"2015-05-18T12:05:18Z","body":"Would be good to have Django 1.8 support."}}