Tweaked formatting so that comments are readable on 80-char terminals.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a599f1234e
commit
4552175d44
|
@ -38,15 +38,16 @@ class Field(object):
|
||||||
def __init__(self, required=True, widget=None, label=None, initial=None, help_text=None):
|
def __init__(self, required=True, widget=None, label=None, initial=None, help_text=None):
|
||||||
# required -- Boolean that specifies whether the field is required.
|
# required -- Boolean that specifies whether the field is required.
|
||||||
# True by default.
|
# True by default.
|
||||||
# widget -- A Widget class, or instance of a Widget class, that should be
|
# widget -- A Widget class, or instance of a Widget class, that should
|
||||||
# used for this Field when displaying it. Each Field has a default
|
# be used for this Field when displaying it. Each Field has a
|
||||||
# Widget that it'll use if you don't specify this. In most cases,
|
# default Widget that it'll use if you don't specify this. In
|
||||||
# the default widget is TextInput.
|
# most cases, the default widget is TextInput.
|
||||||
# label -- A verbose name for this field, for use in displaying this field in
|
# label -- A verbose name for this field, for use in displaying this
|
||||||
# a form. By default, Django will use a "pretty" version of the form
|
# field in a form. By default, Django will use a "pretty"
|
||||||
# field name, if the Field is part of a Form.
|
# version of the form field name, if the Field is part of a
|
||||||
# initial -- A value to use in this Field's initial display. This value is
|
# Form.
|
||||||
# *not* used as a fallback if data isn't given.
|
# initial -- A value to use in this Field's initial display. This value
|
||||||
|
# is *not* used as a fallback if data isn't given.
|
||||||
# help_text -- An optional string to use as "help text" for this Field.
|
# help_text -- An optional string to use as "help text" for this Field.
|
||||||
if label is not None:
|
if label is not None:
|
||||||
label = smart_unicode(label)
|
label = smart_unicode(label)
|
||||||
|
|
Loading…
Reference in New Issue