aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorCarlton Gibson2015-02-20 13:00:46 +0100
committerCarlton Gibson2015-02-20 13:00:46 +0100
commitdc8cc8607763fccc6eb3668ea7e2a976c08dd614 (patch)
treeb9c915ea80ae42c9a756789a7f11977e57d02ec4 /rest_framework
parent4f1506c77e172bd5d03e88db898d6cc55cf5796d (diff)
parent60617f876a78b5b81b47a63f9711c4b9eac03a09 (diff)
downloaddjango-rest-framework-dc8cc8607763fccc6eb3668ea7e2a976c08dd614.tar.bz2
Merge pull request #2580 from jpadilla/master
Fixes HiddenField being rendered in HTMLFormRenderer
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/renderers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/renderers.py b/rest_framework/renderers.py
index 339bd0d1..920d2bc4 100644
--- a/rest_framework/renderers.py
+++ b/rest_framework/renderers.py
@@ -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])