mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +03:00
Fixes HiddenField being rendered in HTMLFormRenderer
This commit is contained in:
parent
777f4e8212
commit
60617f876a
|
@ -305,7 +305,7 @@ class HTMLFormRenderer(BaseRenderer):
|
||||||
})
|
})
|
||||||
|
|
||||||
def render_field(self, field, parent_style):
|
def render_field(self, field, parent_style):
|
||||||
if isinstance(field, serializers.HiddenField):
|
if isinstance(field._field, serializers.HiddenField):
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
style = dict(self.default_style[field])
|
style = dict(self.default_style[field])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user