You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I then want to check if the columns are present : what I would like to have instead of a validate function that raises an error, is a validate_bool function that returns a bool:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
What I sometimes have, is a base model, and multiple inhited models with groups of optionnal columns like in the following (made-up) example :
I then want to check if the columns are present : what I would like to have instead of a
validate
function that raises an error, is avalidate_bool
function that returns abool
:or maybe even be able to create composed validation models
Do you think it could be useful. Or is there already a way to do something like that without an helper function ?
Beta Was this translation helpful? Give feedback.
All reactions