Actually one thing I just thought of RE point 1:
You could set it up so that if declared db_default is a Python literal (or any Python expression/non-db-expression that evaluates to something that could be passed to Value) - use that for the form’s default; otherwise if it’s an expression, ignore setting the default.
I think checking if an expression is a Value instance is too unreliable?
![]()