django-extras / docs / ref / forms / fields.txt

Form field reference

.. module:: django_extras.forms.fields
   :synopsis: Additional field types.

Field types

.. currentmodule:: django_extras.forms.fields


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

    Specifies that the default widget is the :class:`JQueryColorPicker`.


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