oxan/djangorestframework-dataclasses

Automatic field generation for enums

oxan opened this issue · 0 comments

oxan commented

If a dataclass has an enum member, there should be a ChoicesField automatically generated for it.

https://docs.python.org/3/library/enum.html
https://www.django-rest-framework.org/api-guide/fields/#choicefield