diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-12-17 19:04:03 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-12-17 19:04:03 +0000 |
| commit | cd394a246aa32e5ce15b0643203b7bfdeb703eb6 (patch) | |
| tree | 09c65ce4905ebc6c4b32fe4a379eab0139c9b8f1 /django/newforms/fields.py | |
| parent | bce9f65c61df98e6d902bb203d1248c7926217d5 (diff) | |
Fixed #3153 -- newforms 'label' argument now can contain wacky characters. Thanks, dswistowski
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/newforms/fields.py')
| -rw-r--r-- | django/newforms/fields.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/newforms/fields.py b/django/newforms/fields.py index a32018e108..ec3b7fc318 100644 --- a/django/newforms/fields.py +++ b/django/newforms/fields.py @@ -34,6 +34,8 @@ class Field(object): creation_counter = 0 def __init__(self, required=True, widget=None, label=None): + if label is not None: + label = smart_unicode(label) self.required, self.label = required, label widget = widget or self.widget if isinstance(widget, type): |
