editlive.adaptors.choices – Choices Adaptor

class editlive.adaptors.choices.ChoicesAdaptor(*args, **kwargs)[source]

Bases: editlive.adaptors.base.BaseAdaptor

The ChoicesAdaptor is used for fields with a choices argument.

get_value()[source]

Instead of returning the field value we call and return the object’s get_FIELD_display method.