{"action":"created","issue":{"url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/57","labels_url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/57/comments","events_url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/57/events","html_url":"https://github.com/gregmuellegger/django-sortedm2m/issues/57","id":97804982,"number":57,"title":"Add related object popup error prevents operation when no related objects already exist","user":{"login":"mkoistinen","id":615759,"avatar_url":"https://avatars.githubusercontent.com/u/615759?v=3","gravatar_id":"","url":"https://api.github.com/users/mkoistinen","html_url":"https://github.com/mkoistinen","followers_url":"https://api.github.com/users/mkoistinen/followers","following_url":"https://api.github.com/users/mkoistinen/following{/other_user}","gists_url":"https://api.github.com/users/mkoistinen/gists{/gist_id}","starred_url":"https://api.github.com/users/mkoistinen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkoistinen/subscriptions","organizations_url":"https://api.github.com/users/mkoistinen/orgs","repos_url":"https://api.github.com/users/mkoistinen/repos","events_url":"https://api.github.com/users/mkoistinen/events{/privacy}","received_events_url":"https://api.github.com/users/mkoistinen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-28T21:23:25Z","updated_at":"2015-08-13T18:44:26Z","closed_at":null,"body":"Using sortedm2m's :heavy_plus_sign: in a change form to add a related object works fine when related objects exist, but fails when there are none to start with.\r\n\r\nI have demonstrated this with [this concise video](https://youtu.be/TNlezwxCtsk). This was made using a pristine virtenv and installing only Django v1.7.9 and django-sortedm2m v1.0.1. Here is a link to my [project files](http://cl.ly/0f1O180g1a0f) for your testing pleasure. admin account = admin/password."},"comment":{"url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/comments/130797670","html_url":"https://github.com/gregmuellegger/django-sortedm2m/issues/57#issuecomment-130797670","issue_url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/57","id":130797670,"user":{"login":"gregmuellegger","id":88278,"avatar_url":"https://avatars.githubusercontent.com/u/88278?v=3","gravatar_id":"","url":"https://api.github.com/users/gregmuellegger","html_url":"https://github.com/gregmuellegger","followers_url":"https://api.github.com/users/gregmuellegger/followers","following_url":"https://api.github.com/users/gregmuellegger/following{/other_user}","gists_url":"https://api.github.com/users/gregmuellegger/gists{/gist_id}","starred_url":"https://api.github.com/users/gregmuellegger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregmuellegger/subscriptions","organizations_url":"https://api.github.com/users/gregmuellegger/orgs","repos_url":"https://api.github.com/users/gregmuellegger/repos","events_url":"https://api.github.com/users/gregmuellegger/events{/privacy}","received_events_url":"https://api.github.com/users/gregmuellegger/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T18:44:26Z","updated_at":"2015-08-13T18:44:26Z","body":"@mkoistinen I would be happy with a complete reimplementation if that would clean-up things. Or make the code better. Feel free to do what is needed to make it work and/or better :)"}}