Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding class with field_for #81

Closed
cancan101 opened this issue Sep 30, 2016 · 1 comment

Comments

@cancan101
Copy link
Contributor

commented Sep 30, 2016

For example I have a JSONB field on the model which is currently mapped to Raw. I would like to make it map to Dict. Ideally I could write:

content = field_for(MyModel, 'content', klass=fields.Dict)
@sloria

This comment has been minimized.

Copy link
Member

commented Sep 30, 2016

Seems like a valid request. I'd gladly review a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.