class documentation

class TextChoices(str, Choices): (source)

View In Hierarchy

Class for creating enumerated string choices.

Method _generate_next_value_ Undocumented

Inherited from 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 _generate_next_value_(name, start, count, last_values): (source)

Undocumented