This commit is contained in:
Tom Christie 2014-10-16 20:47:40 +01:00
parent 3af5df1955
commit 5882a7a9d5

View File

@ -396,7 +396,7 @@ class HTMLFormRenderer(BaseRenderer):
style = dict(self.default_style[field]) style = dict(self.default_style[field])
style.update(field.style) style.update(field.style)
if 'template_pack' not in style: if 'template_pack' not in style:
style['template_pack'] = parent_style['template_pack'] style['template_pack'] = parent_style.get('template_pack', self.template_pack)
style['renderer'] = self style['renderer'] = self
if style.get('input_type') == 'datetime-local' and isinstance(field.value, six.text_type): if style.get('input_type') == 'datetime-local' and isinstance(field.value, six.text_type):