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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user