Ticket #5216: label_tag.patch

File label_tag.patch, 641 bytes (added by anonymous, 17 years ago)
  • data/django/django/newforms/forms.py

     
    300300        id_ = widget.attrs.get('id') or self.auto_id
    301301        if id_:
    302302            attrs = attrs and flatatt(attrs) or ''
    303             contents = '<label for="%s"%s>%s</label>' % (widget.id_for_label(id_), attrs, contents)
     303            contents = '<label for="%s"%s>%s</label>' % (widget.id_for_label(id_), attrs, contents.__unicode__())
    304304        return contents
    305305
    306306    def _is_hidden(self):
Back to Top