{"action":"created","issue":{"url":"https://api.github.com/repos/wtforms/wtforms/issues/116","labels_url":"https://api.github.com/repos/wtforms/wtforms/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/wtforms/wtforms/issues/116/comments","events_url":"https://api.github.com/repos/wtforms/wtforms/issues/116/events","html_url":"https://github.com/wtforms/wtforms/issues/116","id":39717101,"number":116,"title":"StringField ignores default values","user":{"login":"Atilla","id":2012,"avatar_url":"https://avatars.githubusercontent.com/u/2012?v=3","gravatar_id":"","url":"https://api.github.com/users/Atilla","html_url":"https://github.com/Atilla","followers_url":"https://api.github.com/users/Atilla/followers","following_url":"https://api.github.com/users/Atilla/following{/other_user}","gists_url":"https://api.github.com/users/Atilla/gists{/gist_id}","starred_url":"https://api.github.com/users/Atilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Atilla/subscriptions","organizations_url":"https://api.github.com/users/Atilla/orgs","repos_url":"https://api.github.com/users/Atilla/repos","events_url":"https://api.github.com/users/Atilla/events{/privacy}","received_events_url":"https://api.github.com/users/Atilla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-08-07T11:42:36Z","updated_at":"2015-04-14T17:01:41Z","closed_at":"2014-08-07T13:44:17Z","body":"Simple enough, Optional() and default=\"something\" on a string field do not mix. \r\n\r\nThe code for StringField explicitly sets the value to u'' if the field isn't present. "},"comment":{"url":"https://api.github.com/repos/wtforms/wtforms/issues/comments/92981564","html_url":"https://github.com/wtforms/wtforms/issues/116#issuecomment-92981564","issue_url":"https://api.github.com/repos/wtforms/wtforms/issues/116","id":92981564,"user":{"login":"Kazanz","id":7441147,"avatar_url":"https://avatars.githubusercontent.com/u/7441147?v=3","gravatar_id":"","url":"https://api.github.com/users/Kazanz","html_url":"https://github.com/Kazanz","followers_url":"https://api.github.com/users/Kazanz/followers","following_url":"https://api.github.com/users/Kazanz/following{/other_user}","gists_url":"https://api.github.com/users/Kazanz/gists{/gist_id}","starred_url":"https://api.github.com/users/Kazanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kazanz/subscriptions","organizations_url":"https://api.github.com/users/Kazanz/orgs","repos_url":"https://api.github.com/users/Kazanz/repos","events_url":"https://api.github.com/users/Kazanz/events{/privacy}","received_events_url":"https://api.github.com/users/Kazanz/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T17:01:41Z","updated_at":"2015-04-14T17:01:41Z","body":"This is really backwards.  Making the default function work one way with IntegerFields and another way with StringFields is bad.  Identical kwargs on a identical functions in subclasses should have identical functionality.\r\n\r\nThe least you could do is change the naming conventions."}}