{"action":"created","issue":{"url":"https://api.github.com/repos/flask-admin/flask-admin/issues/1399","repository_url":"https://api.github.com/repos/flask-admin/flask-admin","labels_url":"https://api.github.com/repos/flask-admin/flask-admin/issues/1399/labels{/name}","comments_url":"https://api.github.com/repos/flask-admin/flask-admin/issues/1399/comments","events_url":"https://api.github.com/repos/flask-admin/flask-admin/issues/1399/events","html_url":"https://github.com/flask-admin/flask-admin/issues/1399","id":192598332,"number":1399,"title":"Select2TagsField fails if no data sent","user":{"login":"fchennouf","id":10494756,"avatar_url":"https://avatars.githubusercontent.com/u/10494756?v=3","gravatar_id":"","url":"https://api.github.com/users/fchennouf","html_url":"https://github.com/fchennouf","followers_url":"https://api.github.com/users/fchennouf/followers","following_url":"https://api.github.com/users/fchennouf/following{/other_user}","gists_url":"https://api.github.com/users/fchennouf/gists{/gist_id}","starred_url":"https://api.github.com/users/fchennouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchennouf/subscriptions","organizations_url":"https://api.github.com/users/fchennouf/orgs","repos_url":"https://api.github.com/users/fchennouf/repos","events_url":"https://api.github.com/users/fchennouf/events{/privacy}","received_events_url":"https://api.github.com/users/fchennouf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-30T15:39:10Z","updated_at":"2016-12-07T00:00:58Z","closed_at":null,"body":"Hello,\r\n\r\nI Have a problem with the Select2TagsField. I have a non required filled in a form represented by a Select2TagsField, and if I don't send any data for this field, the process_formdata raise an exception because valuelist is used without previous check, is it possible to check the valuelist before using it, this way:\r\n\r\n```\r\nif valuelist:\r\n            if self.save_as_list:\r\n                self.data = [self.coerce(v.strip()) for v in valuelist[0].split(',') if v.strip()]\r\n            else:\r\n                self.data = self.coerce(valuelist[0])\r\n```"},"comment":{"url":"https://api.github.com/repos/flask-admin/flask-admin/issues/comments/265313135","html_url":"https://github.com/flask-admin/flask-admin/issues/1399#issuecomment-265313135","issue_url":"https://api.github.com/repos/flask-admin/flask-admin/issues/1399","id":265313135,"user":{"login":"ix5","id":10212877,"avatar_url":"https://avatars.githubusercontent.com/u/10212877?v=3","gravatar_id":"","url":"https://api.github.com/users/ix5","html_url":"https://github.com/ix5","followers_url":"https://api.github.com/users/ix5/followers","following_url":"https://api.github.com/users/ix5/following{/other_user}","gists_url":"https://api.github.com/users/ix5/gists{/gist_id}","starred_url":"https://api.github.com/users/ix5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ix5/subscriptions","organizations_url":"https://api.github.com/users/ix5/orgs","repos_url":"https://api.github.com/users/ix5/repos","events_url":"https://api.github.com/users/ix5/events{/privacy}","received_events_url":"https://api.github.com/users/ix5/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T00:00:58Z","updated_at":"2016-12-07T00:00:58Z","body":"Looks good, why don't you make a pull request?\r\nMaybe on top of #1285."}}
{"actor":{"display_login":"ix5"}}