Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 4552175d44576934f23edb63093c4747d3c2426d 1 parent a599f12
@malcolmt malcolmt authored
Showing with 10 additions and 9 deletions.
  1. +10 −9 django/newforms/fields.py
View
19 django/newforms/fields.py
@@ -38,15 +38,16 @@ class Field(object):
def __init__(self, required=True, widget=None, label=None, initial=None, help_text=None):
# required -- Boolean that specifies whether the field is required.
# True by default.
- # widget -- A Widget class, or instance of a Widget class, that should be
- # used for this Field when displaying it. Each Field has a default
- # Widget that it'll use if you don't specify this. In most cases,
- # the default widget is TextInput.
- # label -- A verbose name for this field, for use in displaying this field in
- # a form. By default, Django will use a "pretty" version of the form
- # field name, if the Field is part of a Form.
- # initial -- A value to use in this Field's initial display. This value is
- # *not* used as a fallback if data isn't given.
+ # widget -- A Widget class, or instance of a Widget class, that should
+ # be used for this Field when displaying it. Each Field has a
+ # default Widget that it'll use if you don't specify this. In
+ # most cases, the default widget is TextInput.
+ # label -- A verbose name for this field, for use in displaying this
+ # field in a form. By default, Django will use a "pretty"
+ # version of the form field name, if the Field is part of a
+ # Form.
+ # 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.
if label is not None:
label = smart_unicode(label)
Please sign in to comment.
Something went wrong with that request. Please try again.