Skip to content

Support dataclass enums. #58

Open
Open
@bckohan

Description

@bckohan

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 request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions