fix bug in rendering file widget label (in case of htmltext)

This commit is contained in:
Frédéric Péters 2013-01-23 15:26:26 +01:00 committed by Thomas NOEL
parent 9a3a679048
commit 1f136c1b13
1 changed files with 1 additions and 1 deletions

View File

@ -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,