Ticket #5216: label_tag.patch
File label_tag.patch, 641 bytes (added by , 17 years ago) |
---|
-
data/django/django/newforms/forms.py
300 300 id_ = widget.attrs.get('id') or self.auto_id 301 301 if id_: 302 302 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__()) 304 304 return contents 305 305 306 306 def _is_hidden(self):