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

Default formatValueToField and formatValueToModel implementations #298

Closed
wants to merge 1 commit into from

Conversation

alepeino
Copy link

Adds a default implementation for formatValueToField and formatValueToModel in the abstractField mixin. A simple identity function, which can just be overridden in the custom fields.

A "tell, don't ask" approach, which makes the code simpler and more readable, in my opinion. Also, it's a fix for #276.

@icebob
Copy link
Member

icebob commented Oct 10, 2017

Sorry, I didn't see it. I solved it in 3353860

Thanks!

@icebob icebob closed this Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants