summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-02-19 23:43:14 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-02-19 23:43:14 +0000
commit7cb7541971b2e080d1288e24e5705d296b11a021 (patch)
treebf9c23867766fe9227090ce8024d2c92d6ef5acf /django
parentbabc0793e3dcfcc976ae44df4c67c7eed627655c (diff)
Improved newforms to handle wacky characters in Field help_text
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4543 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/newforms/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/newforms/fields.py b/django/newforms/fields.py
index 1391bd1b2f..0f082b9ee3 100644
--- a/django/newforms/fields.py
+++ b/django/newforms/fields.py
@@ -51,7 +51,7 @@ class Field(object):
if label is not None:
label = smart_unicode(label)
self.required, self.label, self.initial = required, label, initial
- self.help_text = help_text
+ self.help_text = smart_unicode(help_text or '')
widget = widget or self.widget
if isinstance(widget, type):
widget = widget()