{"action":"created","issue":{"url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/602","repository_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light","labels_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/602/labels{/name}","comments_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/602/comments","events_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/602/events","html_url":"https://github.com/yourlabs/django-autocomplete-light/issues/602","id":136232231,"number":602,"title":"cannot use select2 on grappelli admin dashboard","user":{"login":"amirarsalan","id":6804671,"avatar_url":"https://avatars.githubusercontent.com/u/6804671?v=3","gravatar_id":"","url":"https://api.github.com/users/amirarsalan","html_url":"https://github.com/amirarsalan","followers_url":"https://api.github.com/users/amirarsalan/followers","following_url":"https://api.github.com/users/amirarsalan/following{/other_user}","gists_url":"https://api.github.com/users/amirarsalan/gists{/gist_id}","starred_url":"https://api.github.com/users/amirarsalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amirarsalan/subscriptions","organizations_url":"https://api.github.com/users/amirarsalan/orgs","repos_url":"https://api.github.com/users/amirarsalan/repos","events_url":"https://api.github.com/users/amirarsalan/events{/privacy}","received_events_url":"https://api.github.com/users/amirarsalan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-02-25T00:15:00Z","updated_at":"2016-08-31T21:05:47Z","closed_at":null,"body":"Hi,\r\n\r\nI used from autocomplete light in grappelli dashboard but i got this error when load page, \r\n`Uncaught TypeError: $(...).select2 is not a function     select2.js:8`!!!!\r\n\r\nhow can i fix this?!\r\n"},"comment":{"url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/comments/243901601","html_url":"https://github.com/yourlabs/django-autocomplete-light/issues/602#issuecomment-243901601","issue_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/602","id":243901601,"user":{"login":"carmichaelalonso","id":4891252,"avatar_url":"https://avatars.githubusercontent.com/u/4891252?v=3","gravatar_id":"","url":"https://api.github.com/users/carmichaelalonso","html_url":"https://github.com/carmichaelalonso","followers_url":"https://api.github.com/users/carmichaelalonso/followers","following_url":"https://api.github.com/users/carmichaelalonso/following{/other_user}","gists_url":"https://api.github.com/users/carmichaelalonso/gists{/gist_id}","starred_url":"https://api.github.com/users/carmichaelalonso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carmichaelalonso/subscriptions","organizations_url":"https://api.github.com/users/carmichaelalonso/orgs","repos_url":"https://api.github.com/users/carmichaelalonso/repos","events_url":"https://api.github.com/users/carmichaelalonso/events{/privacy}","received_events_url":"https://api.github.com/users/carmichaelalonso/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T21:05:47Z","updated_at":"2016-08-31T21:05:47Z","body":"@chubz thanks! That did the trick. My jquery.init.js looked like:\r\n```\r\nvar yl = yl || {};\r\n\r\nif (yl.jQuery === undefined) {\r\n    if (typeof django !== 'undefined')\r\n        yl.jQuery = django.jQuery;\r\n\r\n    else if (typeof $ !== 'undefined')\r\n        yl.jQuery = $;\r\n}\r\n```\r\n\r\nI had to manually change this for it to work (and this was installed from the pip package). I'll have a look to see if I can get the right jquery.init.js loading before I push to production."}}
{"actor":{"display_login":"carmichaelalonso"}}