Fixes HiddenField being rendered in HTMLFormRenderer

This commit is contained in:
Rubén Durá Tarí 2015-02-12 12:03:00 +00:00 committed by José Padilla
parent 777f4e8212
commit 60617f876a

View File

@ -305,7 +305,7 @@ class HTMLFormRenderer(BaseRenderer):
})
def render_field(self, field, parent_style):
if isinstance(field, serializers.HiddenField):
if isinstance(field._field, serializers.HiddenField):
return ''
style = dict(self.default_style[field])