Ticket #9486: 9486.diff
File 9486.diff, 729 bytes (added by , 16 years ago) |
---|
-
django/forms/forms.py
155 155 if self.label_suffix: 156 156 if label[-1] not in ':?.!': 157 157 label += self.label_suffix 158 label = bf.label_tag(label) or '' 158 159 attrs = None 160 if bf.field.required: 161 attrs = {'class': 'required'} 162 163 label = bf.label_tag(label, attrs) or '' 164 159 165 else: 160 166 label = '' 161 167 if field.help_text: