fix bug in rendering file widget label (in case of htmltext)
This commit is contained in:
parent
9a3a679048
commit
1f136c1b13
|
@ -144,7 +144,7 @@ StringWidget.render_content = string_render_content
|
|||
|
||||
|
||||
def file_render_content(self):
|
||||
attrs = {'id': 'form_' + self.name.split('$')[0]}
|
||||
attrs = {'id': 'form_' + str(self.name).split('$')[0]}
|
||||
if self.attrs:
|
||||
attrs.update(self.attrs)
|
||||
return htmltag("input", xml_end=True, type=self.HTML_TYPE, name=self.name,
|
||||
|
|
Loading…
Reference in New Issue