Fix HTML literal for hidden form field

This commit is contained in:
Lance Edgar 2022-08-09 14:48:23 -05:00
parent 3edbe96968
commit 8f1f8abf42

View file

@ -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):
"""