Commits

Tim Savage committed 807e3a9 Draft

Fixed class doc for fields (missing indent)

Comments (0)

Files changed (2)

docs/ref/forms/fields.txt

 
 .. class:: ColorField([allow_alpha=False, max_length=40, **options])
 
-A :class:`CharField` that checks that the value is a valid CSS color value.
-``allow_alpha`` controls if colors can support alpha values.
+    A :class:`CharField` that checks that the value is a valid CSS color value.
+    ``allow_alpha`` controls if colors can support alpha values.
 
-Specifies that the default widget is the :class:`JQueryColorPicker`.
+    Specifies that the default widget is the :class:`JQueryColorPicker`.
 
 
 ``JsonField``
 
 .. class:: JsonField([dump_options={'cls': DjangoJSONEncoder}, load_options={}, **options])
 
-A :class:`TextField` that handles serialisation/deserialization of JSON
-structures for display in a Text input.
+    A :class:`TextField` that handles serialisation/deserialization of JSON
+    structures for display in a Text input.

docs/ref/models/fields.txt

 
 .. class:: ColorField([allow_alpha=False, max_length=40, **options])
 
-A :class:`CharField` that checks that the value is a valid CSS color value.
-``allow_alpha`` controls if colors can support alpha values.
+    A :class:`CharField` that checks that the value is a valid CSS color value.
+    ``allow_alpha`` controls if colors can support alpha values.
 
 
 ``MoneyField``
 
 .. class:: MoneyField([max_digits=40, decimal_places=4, **options])
 
-A :class:`DecimalField` that sets up sensible defaults for monetary values, in
-addition the :class:`MoneyField` will return values as instances of the
-:class:`Money` type. The :class:`Money` type is based on Pythons decimal
-object.
+    A :class:`DecimalField` that sets up sensible defaults for monetary values, in
+    addition the :class:`MoneyField` will return values as instances of the
+    :class:`Money` type. The :class:`Money` type is based on Pythons decimal
+    object.
 
 .. note::
     The current implementation does not store the currency code with the money
 
 .. class:: PercentField(**options)
 
-A :class:`FloatField` that represents a percentage value. Validates provided value to
-ensure it is within the range 0 to 100.
+    A :class:`FloatField` that represents a percentage value. Validates provided value to
+    ensure it is within the range 0 to 100.
 
 
 ``LatitudeField``
 
 .. class:: LatitudeField(**options)
 
-A :class:`FloatField` that represents a latitude. Validates provided value to
-ensure it is within the range -90.0 to 90.0
+    A :class:`FloatField` that represents a latitude. Validates provided value to
+    ensure it is within the range -90.0 to 90.0
 
 
 
 
 .. class:: LongitudeField(**options)
 
-A :class:`FloatField` that represents a longitude. Values are validated
-to be within the range -180.0 to 180.0.
+    A :class:`FloatField` that represents a longitude. Values are validated
+    to be within the range -180.0 to 180.0.
 
 
 ``JsonField``
 
 .. class:: JsonField([dump_options={'cls': DjangoJSONEncoder}, load_options={}, **options])
 
-A :class:`TextField` that handles serialisation/deserialization of JSON
-structures into a database field.
+    A :class:`TextField` that handles serialisation/deserialization of JSON
+    structures into a database field.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.