{"action":"created","issue":{"url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/78","repository_url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m","labels_url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/78/comments","events_url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/78/events","html_url":"https://github.com/gregmuellegger/django-sortedm2m/issues/78","id":156316088,"number":78,"title":"Drag and & not working when rendered using `bootstrap_form` template tag","user":{"login":"mick88","id":4239561,"avatar_url":"https://avatars.githubusercontent.com/u/4239561?v=3","gravatar_id":"","url":"https://api.github.com/users/mick88","html_url":"https://github.com/mick88","followers_url":"https://api.github.com/users/mick88/followers","following_url":"https://api.github.com/users/mick88/following{/other_user}","gists_url":"https://api.github.com/users/mick88/gists{/gist_id}","starred_url":"https://api.github.com/users/mick88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mick88/subscriptions","organizations_url":"https://api.github.com/users/mick88/orgs","repos_url":"https://api.github.com/users/mick88/repos","events_url":"https://api.github.com/users/mick88/events{/privacy}","received_events_url":"https://api.github.com/users/mick88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-23T16:56:44Z","updated_at":"2016-05-24T10:52:01Z","closed_at":null,"body":"I'm using `django-bootstrap3==6.2.2` and render my form using `{% bootstrap_form form %}`. \r\nThe resulting widget renders fine, but drag and drop does not work. \r\n\r\nI'm including js using `{{ form.media }}`."},"comment":{"url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/comments/221233956","html_url":"https://github.com/gregmuellegger/django-sortedm2m/issues/78#issuecomment-221233956","issue_url":"https://api.github.com/repos/gregmuellegger/django-sortedm2m/issues/78","id":221233956,"user":{"login":"mick88","id":4239561,"avatar_url":"https://avatars.githubusercontent.com/u/4239561?v=3","gravatar_id":"","url":"https://api.github.com/users/mick88","html_url":"https://github.com/mick88","followers_url":"https://api.github.com/users/mick88/followers","following_url":"https://api.github.com/users/mick88/following{/other_user}","gists_url":"https://api.github.com/users/mick88/gists{/gist_id}","starred_url":"https://api.github.com/users/mick88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mick88/subscriptions","organizations_url":"https://api.github.com/users/mick88/orgs","repos_url":"https://api.github.com/users/mick88/repos","events_url":"https://api.github.com/users/mick88/events{/privacy}","received_events_url":"https://api.github.com/users/mick88/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T10:52:01Z","updated_at":"2016-05-24T10:52:01Z","body":"@gregmuellegger The only logical solution I can think of is generifying the jquery script to operate on classes instead of tag names so that it's more forgiving if tag name changes. Bootstrap replaces `<ul>` and `<li>` tags with `<div>` using the map below (in `list_to_class` method of field renderer). \r\n\r\n```python\r\nmapping = [\r\n    ('<ul', '<div'),\r\n    ('</ul>', '</div>'),\r\n    ('<li', '<div class=\"{klass}\"'.format(klass=classes)),\r\n    ('</li>', '</div>'),\r\n]\r\n```"}}
{"actor":{"display_login":"mick88"}}