Do not render HTML output for hidden fields. Closes #2410.

This commit is contained in:
Tom Christie 2015-01-21 14:26:25 +00:00
parent e59b3d1718
commit 4cf03e30ff

View File

@ -410,6 +410,9 @@ class HTMLFormRenderer(BaseRenderer):
})
def render_field(self, field, parent_style):
if isinstance(field, serializers.HiddenField):
return ''
style = dict(self.default_style[field])
style.update(field.style)
if 'template_pack' not in style: