Form field reference

Field types

ColorField

class ColorField([allow_alpha=False, max_length=40, **options])

A 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 JQueryColorPicker.

JsonField

class JsonField([dump_options={'cls': DjangoJSONEncoder}, load_options={}, **options])

A TextField that handles serialisation/deserialization of JSON structures for display in a Text input.