{"action":"created","issue":{"url":"https://api.github.com/repos/funkybob/django-sniplates/issues/29","labels_url":"https://api.github.com/repos/funkybob/django-sniplates/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/funkybob/django-sniplates/issues/29/comments","events_url":"https://api.github.com/repos/funkybob/django-sniplates/issues/29/events","html_url":"https://github.com/funkybob/django-sniplates/issues/29","id":103333687,"number":29,"title":"value of BooleanField is cast to string","user":{"login":"wengole","id":383857,"avatar_url":"https://avatars.githubusercontent.com/u/383857?v=3","gravatar_id":"","url":"https://api.github.com/users/wengole","html_url":"https://github.com/wengole","followers_url":"https://api.github.com/users/wengole/followers","following_url":"https://api.github.com/users/wengole/following{/other_user}","gists_url":"https://api.github.com/users/wengole/gists{/gist_id}","starred_url":"https://api.github.com/users/wengole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wengole/subscriptions","organizations_url":"https://api.github.com/users/wengole/orgs","repos_url":"https://api.github.com/users/wengole/repos","events_url":"https://api.github.com/users/wengole/events{/privacy}","received_events_url":"https://api.github.com/users/wengole/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-26T18:14:11Z","updated_at":"2015-08-27T13:35:52Z","closed_at":null,"body":"https://github.com/funkybob/django-sniplates/blob/master/sniplates/templatetags/sniplates.py#L350\r\n\r\nThis line here casts the value of a BooleanField to a string. This means if you try to do something like\r\n\r\n```\r\n<input type=\"checkbox\"  {% if value %}checked{% endif %}>\r\n```\r\nit won't work as value will always evaluate to True.\r\n\r\nAm I missing something here, or is this a bug?"},"comment":{"url":"https://api.github.com/repos/funkybob/django-sniplates/issues/comments/135431091","html_url":"https://github.com/funkybob/django-sniplates/issues/29#issuecomment-135431091","issue_url":"https://api.github.com/repos/funkybob/django-sniplates/issues/29","id":135431091,"user":{"login":"funkybob","id":301363,"avatar_url":"https://avatars.githubusercontent.com/u/301363?v=3","gravatar_id":"","url":"https://api.github.com/users/funkybob","html_url":"https://github.com/funkybob","followers_url":"https://api.github.com/users/funkybob/followers","following_url":"https://api.github.com/users/funkybob/following{/other_user}","gists_url":"https://api.github.com/users/funkybob/gists{/gist_id}","starred_url":"https://api.github.com/users/funkybob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funkybob/subscriptions","organizations_url":"https://api.github.com/users/funkybob/orgs","repos_url":"https://api.github.com/users/funkybob/repos","events_url":"https://api.github.com/users/funkybob/events{/privacy}","received_events_url":"https://api.github.com/users/funkybob/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T13:35:52Z","updated_at":"2015-08-27T13:35:52Z","body":"That is not value parsing... this code is only for rendering forms... submissions are still handled as always."}}