{"action":"opened","issue":{"url":"https://api.github.com/repos/MongoEngine/flask-mongoengine/issues/292","repository_url":"https://api.github.com/repos/MongoEngine/flask-mongoengine","labels_url":"https://api.github.com/repos/MongoEngine/flask-mongoengine/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/MongoEngine/flask-mongoengine/issues/292/comments","events_url":"https://api.github.com/repos/MongoEngine/flask-mongoengine/issues/292/events","html_url":"https://github.com/MongoEngine/flask-mongoengine/issues/292","id":196894289,"number":292,"title":"`Required` to `InputRequired` why?","user":{"login":"Zephor5","id":2234158,"avatar_url":"https://avatars.githubusercontent.com/u/2234158?v=3","gravatar_id":"","url":"https://api.github.com/users/Zephor5","html_url":"https://github.com/Zephor5","followers_url":"https://api.github.com/users/Zephor5/followers","following_url":"https://api.github.com/users/Zephor5/following{/other_user}","gists_url":"https://api.github.com/users/Zephor5/gists{/gist_id}","starred_url":"https://api.github.com/users/Zephor5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zephor5/subscriptions","organizations_url":"https://api.github.com/users/Zephor5/orgs","repos_url":"https://api.github.com/users/Zephor5/repos","events_url":"https://api.github.com/users/Zephor5/events{/privacy}","received_events_url":"https://api.github.com/users/Zephor5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-21T10:14:14Z","updated_at":"2016-12-21T10:14:14Z","closed_at":null,"body":"[Use InputRequired validator instead of Required](https://github.com/MongoEngine/flask-mongoengine/commit/c157e34aff11557936a0556ec12eee94c3b635cf#diff-9741519ba30ec3df10dfbd8f06122df8)\r\n\r\nI have dups forms in one page, so i have to add num suffix in the name to tell them.\r\nwhen post the form, i just assign these fields by kwargs.\r\n\r\n    _nn = request.form.get('name_%s' % i)\r\n    _xx = request.form.get('xpath_%s' % i)\r\n    _rr = request.form.get('re_%s' % i)\r\n    _ss = request.form.get('specify_%s' % i)\r\n    atf = ArticleFieldForm(csrf_enabled=False, name=_nn, xpath=_xx, re=_rr, specify=_ss)\r\n    article_field_forms.append(atf)\r\n\r\nnow, I have to add these codes\r\n\r\n    atf.name.raw_data = [_nn]\r\n    atf.xpath.raw_data = [_xx]\r\n    atf.re.raw_data = [_rr]\r\n    atf.specify.raw_data = [_ss]\r\n\r\nto pass through the validation. :("}}
{"actor":{"display_login":"Zephor5"}}