summaryrefslogtreecommitdiff
path: root/django/db/models/enums.py
AgeCommit message (Expand)Author
2025-01-20Fixed #36005 -- Dropped support for Python 3.10 and 3.11.Mariusz Felisiak
2025-01-15Removed ChoicesMeta per deprecation timeline.Sarah Boyce
2023-09-13Modernized enumeration helpers on Python 3.11+.Nick Pope
2023-09-13Refs #34233 -- Used @staticmethod with TextChoices._generate_next_value_().Nick Pope
2023-09-12Renamed ChoicesMeta to ChoicesType.Nick Pope
2023-09-12Removed ChoicesMeta.__contains__() for Python 3.12+.Nick Pope
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-07-12Refs #32074 -- Used Enum.repr() format proposed for Python 3.10.Mariusz Felisiak
2021-04-07Refs #32074 -- Backported Enum.__repr__() from Python 3.10.Mariusz Felisiak
2021-03-24Fixed #32460 -- Allowed "label"/"do_not_call_in_templates" members in model c...Nick Pope
2021-02-04Refs #32074 -- Fixed TextChoices/IntegerChoices crash on Python 3.10.Mariusz Felisiak
2020-01-10Fixed #31154 -- Added support for using enumeration types in templates.Adam Johnson
2019-12-16Optimized containment check in ChoicesMeta.Ram Rachum
2019-10-25Fixed #30902 -- Added __str__() for model choice enums.Carlton Gibson
2019-09-04Fixed #27910 -- Added enumeration helpers for use in Field.choices.Shai Berger