1
0
mirror of https://github.com/django/django.git synced 2025-10-27 07:36:08 +00:00

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
This commit is contained in:
Adrian Holovaty
2007-02-19 23:43:14 +00:00
parent babc0793e3
commit 7cb7541971
2 changed files with 8 additions and 1 deletions

View File

@@ -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()