JSONField renders as textarea (#5529) (#5530)

This commit is contained in:
Jamie Cockburn 2017-10-25 09:55:41 +01:00 committed by Carlton Gibson
parent 91fa8b923a
commit efb047fa07

View File

@ -323,6 +323,9 @@ class HTMLFormRenderer(BaseRenderer):
serializers.FilePathField: {
'base_template': 'select.html',
},
serializers.JSONField: {
'base_template': 'textarea.html',
},
})
def render_field(self, field, parent_style):