{"action":"created","issue":{"url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/426","labels_url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/426/comments","events_url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/426/events","html_url":"https://github.com/maraujop/django-crispy-forms/issues/426","id":69895550,"number":426,"title":"css_id for Fields is rendered as css-id attribute","user":{"login":"yosemitebandit","id":751590,"avatar_url":"https://avatars.githubusercontent.com/u/751590?v=3","gravatar_id":"","url":"https://api.github.com/users/yosemitebandit","html_url":"https://github.com/yosemitebandit","followers_url":"https://api.github.com/users/yosemitebandit/followers","following_url":"https://api.github.com/users/yosemitebandit/following{/other_user}","gists_url":"https://api.github.com/users/yosemitebandit/gists{/gist_id}","starred_url":"https://api.github.com/users/yosemitebandit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosemitebandit/subscriptions","organizations_url":"https://api.github.com/users/yosemitebandit/orgs","repos_url":"https://api.github.com/users/yosemitebandit/repos","events_url":"https://api.github.com/users/yosemitebandit/events{/privacy}","received_events_url":"https://api.github.com/users/yosemitebandit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-21T16:42:57Z","updated_at":"2015-04-28T04:19:44Z","closed_at":null,"body":"This bit of my layout:\r\n```python\r\nself.helper.layout = Layout(\r\n  Field('uuid', placeholder='abc123', css_id='uuid-input')\r\n  ..\r\n)\r\n```\r\nwas rendered as this HTML:\r\n```html\r\n<input class=\"textinput textInput form-control\" css-id=\"uuid-input\" \r\n       id=\"id_uuid\" name=\"uuid\" placeholder=\"abc123\" type=\"text\">\r\n```\r\n\r\nI found `css_id` will set the `id` attribute correctly on `StrictButton`.  And I found that I can just use the `id` named argument instead of `css_id` to get things working in `Field`, that is, this worked for me:\r\n\r\n```python\r\nself.helper.layout = Layout(\r\n  Field('uuid', placeholder='abc123', id='uuid-input')\r\n  ..\r\n)\r\n```"},"comment":{"url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/comments/96905230","html_url":"https://github.com/maraujop/django-crispy-forms/issues/426#issuecomment-96905230","issue_url":"https://api.github.com/repos/maraujop/django-crispy-forms/issues/426","id":96905230,"user":{"login":"BodhiSukha","id":4272281,"avatar_url":"https://avatars.githubusercontent.com/u/4272281?v=3","gravatar_id":"","url":"https://api.github.com/users/BodhiSukha","html_url":"https://github.com/BodhiSukha","followers_url":"https://api.github.com/users/BodhiSukha/followers","following_url":"https://api.github.com/users/BodhiSukha/following{/other_user}","gists_url":"https://api.github.com/users/BodhiSukha/gists{/gist_id}","starred_url":"https://api.github.com/users/BodhiSukha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BodhiSukha/subscriptions","organizations_url":"https://api.github.com/users/BodhiSukha/orgs","repos_url":"https://api.github.com/users/BodhiSukha/repos","events_url":"https://api.github.com/users/BodhiSukha/events{/privacy}","received_events_url":"https://api.github.com/users/BodhiSukha/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T04:19:44Z","updated_at":"2015-04-28T04:19:44Z","body":"Same here as @yosemitebandit "}}