class documentation

class Choices(enum.Enum):

Known subclasses: django.db.models.enums.IntegerChoices, django.db.models.enums.TextChoices

View In Hierarchy

Class for creating enumerated choices.
Method __repr__ Undocumented
Method __str__ Use value when cast to str, so that Choices set as model instance attributes are rendered as expected in templates and similar contexts.
Method label Undocumented
Property do​_not​_call​_in​_templates Undocumented
def __repr__(self):

Undocumented

def __str__(self):
Use value when cast to str, so that Choices set as model instance attributes are rendered as expected in templates and similar contexts.
@DynamicClassAttribute
def label(self):

Undocumented

@property
do_not_call_in_templates =

Undocumented