From 8f1f8abf425190e0ebf948192e0ab967c31a71f6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 9 Aug 2022 14:48:23 -0500 Subject: [PATCH] Fix HTML literal for hidden form field --- tailbone/forms/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tailbone/forms/core.py b/tailbone/forms/core.py index 14703eb7..bd939272 100644 --- a/tailbone/forms/core.py +++ b/tailbone/forms/core.py @@ -925,7 +925,8 @@ class Form(object): else: # hidden field # can just do normal thing for these - return field.serialize() + # TODO: again, why does serialize() not return literal? + return HTML.literal(field.serialize()) def render_field_readonly(self, field_name, **kwargs): """