mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Tweak
This commit is contained in:
parent
3af5df1955
commit
5882a7a9d5
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user