class documentation
class Choices(enum.Enum): (source)
Known subclasses: django.db.models.enums.IntegerChoices
, django.db.models.enums.TextChoices
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 |
Undocumented |