Commit 5882a7a9 by Tom Christie

Tweak

parent 3af5df19
...@@ -396,7 +396,7 @@ class HTMLFormRenderer(BaseRenderer): ...@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment