From 93a3da2335f2e582cd4d9f93cdbe49518b198981 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 6 Jun 2019 15:10:33 -0500 Subject: [PATCH] Tweak initial v-bind model value for Buefy form, when is colander.null --- tailbone/templates/forms/deform_buefy.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/templates/forms/deform_buefy.mako b/tailbone/templates/forms/deform_buefy.mako index c70c624c..5ca8b1ac 100644 --- a/tailbone/templates/forms/deform_buefy.mako +++ b/tailbone/templates/forms/deform_buefy.mako @@ -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