add default coerce to any Select2Field#2784
Conversation
|
Why do you need to change typing? Do we need to change all other orm libraries? |
what do you mean? i'm not changing the typing. This PR just extract the right |
|
Sorry, let me be more specific. Why not editing |
the |
|
it is ready for review now, if it is hard to review because of many commits please let me know so i may squash them into a new PR and close this one |
include all field types and cover all default end explicit coerce
run-time error is raised if Select2Field did'nt include
coerce=intin form_argsHere is how to replicate the error
This PR adds a default coerce function if it is not provided explicitly based on the Column's type
the added tests won't pass without changes in this PR