Ticket #5216: label_tag.2.patch
File label_tag.2.patch, 619 bytes (added by , 17 years ago) |
---|
-
data/django/django/newforms/forms.py
296 296 If attrs are given, they're used as HTML attributes on the <label> tag. 297 297 """ 298 298 contents = contents or escape(self.label) 299 from django.utils.functional import Promise 300 if isinstance(contents, Promise): 301 contents = contents.__unicode__() 299 302 widget = self.field.widget 300 303 id_ = widget.attrs.get('id') or self.auto_id 301 304 if id_: