{"action":"created","issue":{"url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/116","labels_url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/116/comments","events_url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/116/events","html_url":"https://github.com/kvesteri/sqlalchemy-utils/issues/116","id":54335699,"number":116,"title":"Support Enum for ChoiceType","user":{"login":"jmagnusson","id":190835,"avatar_url":"https://avatars.githubusercontent.com/u/190835?v=3","gravatar_id":"","url":"https://api.github.com/users/jmagnusson","html_url":"https://github.com/jmagnusson","followers_url":"https://api.github.com/users/jmagnusson/followers","following_url":"https://api.github.com/users/jmagnusson/following{/other_user}","gists_url":"https://api.github.com/users/jmagnusson/gists{/gist_id}","starred_url":"https://api.github.com/users/jmagnusson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmagnusson/subscriptions","organizations_url":"https://api.github.com/users/jmagnusson/orgs","repos_url":"https://api.github.com/users/jmagnusson/repos","events_url":"https://api.github.com/users/jmagnusson/events{/privacy}","received_events_url":"https://api.github.com/users/jmagnusson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-14T15:36:20Z","updated_at":"2015-01-14T17:08:34Z","closed_at":null,"body":"I really like the ChoiceType field, it would be nice though to have the values enforced on the db level as well with `sqlalchemy.types.Enum` as the underlying type. What do you think?"},"comment":{"url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/comments/69951399","html_url":"https://github.com/kvesteri/sqlalchemy-utils/issues/116#issuecomment-69951399","issue_url":"https://api.github.com/repos/kvesteri/sqlalchemy-utils/issues/116","id":69951399,"user":{"login":"kvesteri","id":398714,"avatar_url":"https://avatars.githubusercontent.com/u/398714?v=3","gravatar_id":"","url":"https://api.github.com/users/kvesteri","html_url":"https://github.com/kvesteri","followers_url":"https://api.github.com/users/kvesteri/followers","following_url":"https://api.github.com/users/kvesteri/following{/other_user}","gists_url":"https://api.github.com/users/kvesteri/gists{/gist_id}","starred_url":"https://api.github.com/users/kvesteri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvesteri/subscriptions","organizations_url":"https://api.github.com/users/kvesteri/orgs","repos_url":"https://api.github.com/users/kvesteri/repos","events_url":"https://api.github.com/users/kvesteri/events{/privacy}","received_events_url":"https://api.github.com/users/kvesteri/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T17:08:34Z","updated_at":"2015-01-14T17:08:34Z","body":"Yes this would require the choices to be passed to the underlying type (if its Enum). I think this would be a nice feature :+1: "}}