akaihola wrote:

Actually, the manipulator doesn't even know about the default values of
the model.
Why that? If you just create AddManipulator and get its flatten_data you'll get default values of the model.

Your example is based on hidden fields with default values. However,
I've understood that it's considered bad practice [1].
No, I didn't suggest using hidden fields. I suggested normal visible fields prefilled with default values.

If you don't want to give user a chance to edit them then yes it would be better not to expose them in forms at all and just set them manually before save.

You also can make a default manipulator not complain about those fields being absent on validation. Give them "editable=False" in the model. Then manipulator will omit them.

Reply via email to