-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
https://docs.python.org/3/howto/enum.html#enum-dataclass-support
enum properties is still a better way to do this - but not being part of stdlib more folks will use dataclass enumerations so django-enum should support it.
This will require adding another kwarg to the EnumField constructor that allows developers to specify the 'value' field on the dataclass.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request