Tweak initial v-bind model value for Buefy form, when is colander.null
This commit is contained in:
parent
96c5bd0b69
commit
93a3da2335
|
@ -96,7 +96,7 @@
|
|||
% elif isinstance(field.schema.typ, deform.FileData):
|
||||
field_model_${field.name}: null,
|
||||
% else:
|
||||
field_model_${field.name}: ${json.dumps(field.cstruct)|n},
|
||||
field_model_${field.name}: ${'null' if field.cstruct is colander.null else json.dumps(field.cstruct)|n},
|
||||
% endif
|
||||
% endif
|
||||
% endfor
|
||||
|
|
Loading…
Reference in a new issue