Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #8426 - 'helptext' CSS class - hopefully for real this time.

This file was missing from [13519]

Thanks to mattmcc for the catch.



git-svn-id: http://code.djangoproject.com/svn/django/trunk@13522 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 10906fa75da9cacb110e4e414fa7c7ca93c188e0 1 parent b71f990
Luke Plant authored August 07, 2010

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/forms/forms.py
6  django/forms/forms.py
@@ -213,7 +213,7 @@ def as_table(self):
213 213
             normal_row = u'<tr%(html_class_attr)s><th>%(label)s</th><td>%(errors)s%(field)s%(help_text)s</td></tr>',
214 214
             error_row = u'<tr><td colspan="2">%s</td></tr>',
215 215
             row_ender = u'</td></tr>',
216  
-            help_text_html = u'<br />%s',
  216
+            help_text_html = u'<br /><span class="helptext">%s</span>',
217 217
             errors_on_separate_row = False)
218 218
 
219 219
     def as_ul(self):
@@ -222,7 +222,7 @@ def as_ul(self):
222 222
             normal_row = u'<li%(html_class_attr)s>%(errors)s%(label)s %(field)s%(help_text)s</li>',
223 223
             error_row = u'<li>%s</li>',
224 224
             row_ender = '</li>',
225  
-            help_text_html = u' %s',
  225
+            help_text_html = u' <span class="helptext">%s</span>',
226 226
             errors_on_separate_row = False)
227 227
 
228 228
     def as_p(self):
@@ -231,7 +231,7 @@ def as_p(self):
231 231
             normal_row = u'<p%(html_class_attr)s>%(label)s %(field)s%(help_text)s</p>',
232 232
             error_row = u'%s',
233 233
             row_ender = '</p>',
234  
-            help_text_html = u' %s',
  234
+            help_text_html = u' <span class="helptext">%s</span>',
235 235
             errors_on_separate_row = True)
236 236
 
237 237
     def non_field_errors(self):

0 notes on commit 10906fa

Please sign in to comment.
Something went wrong with that request. Please try again.