CustomModelMultipleChoiceField

Qualified name: tin.apps.submissions.forms.CustomModelMultipleChoiceField

class CustomModelMultipleChoiceField(queryset, **kwargs)[source]

Bases: ModelMultipleChoiceField

Methods

label_from_instance

Convert objects into strings and generate the labels for the choices presented by this object.

Attributes

label_from_instance(obj)[source]

Convert objects into strings and generate the labels for the choices presented by this object. Subclasses can override this method to customize the display of the choices.