1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

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
This commit is contained in:
Adrian Holovaty
2006-12-17 19:04:03 +00:00
parent bce9f65c61
commit cd394a246a
2 changed files with 10 additions and 0 deletions

View File

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