Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Malcolm Tredinnick authored April 01, 2007

Showing 1 changed file with 10 additions and 9 deletions. Show diff stats Hide diff stats

  1. 19  django/newforms/fields.py
19  django/newforms/fields.py
@@ -38,15 +38,16 @@ class Field(object):
38 38
     def __init__(self, required=True, widget=None, label=None, initial=None, help_text=None):
39 39
         # required -- Boolean that specifies whether the field is required.
40 40
         #             True by default.
41  
-        # widget -- A Widget class, or instance of a Widget class, that should be
42  
-        #         used for this Field when displaying it. Each Field has a default
43  
-        #         Widget that it'll use if you don't specify this. In most cases,
44  
-        #         the default widget is TextInput.
45  
-        # label -- A verbose name for this field, for use in displaying this field in
46  
-        #         a form. By default, Django will use a "pretty" version of the form
47  
-        #         field name, if the Field is part of a Form.
48  
-        # initial -- A value to use in this Field's initial display. This value is
49  
-        #            *not* used as a fallback if data isn't given.
  41
+        # widget -- A Widget class, or instance of a Widget class, that should
  42
+        #           be used for this Field when displaying it. Each Field has a
  43
+        #           default Widget that it'll use if you don't specify this. In
  44
+        #           most cases, the default widget is TextInput.
  45
+        # label -- A verbose name for this field, for use in displaying this
  46
+        #          field in a form. By default, Django will use a "pretty"
  47
+        #          version of the form field name, if the Field is part of a
  48
+        #          Form.
  49
+        # initial -- A value to use in this Field's initial display. This value
  50
+        #            is *not* used as a fallback if data isn't given.
50 51
         # help_text -- An optional string to use as "help text" for this Field.
51 52
         if label is not None:
52 53
             label = smart_unicode(label)

0 notes on commit 4552175

Please sign in to comment.
Something went wrong with that request. Please try again.