The ENUM render isn't rendering the ENUM name in the value.
class MyEnum(Enum):
"""Just a ENUM example"""
MY_VALUE_1 = 1
MY_VALUE_2 = 2
MY_FIELD = MyEnum.MY_VALUE_1.value
MY_FIELD_ARRAY = [ MyEnum.MY_VALUE_1.value, MyEnum.MY_VALUE_2.value ]
For ENUM values the ENUM name/full qualified name helps to gather context, it should render at least the ENUM name in the value, like MyEnum.MY_VALUE_1.value
, the constant MY_VALUE_1.value
or the full qualified name my_module.MyEnum.MY_VALUE_1.value
.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too