mongoengine-migrate
mongoengine-migrate copied to clipboard
Handling `EnumField` choices
Hi all,
I noticed that EnumField
choices are rendered like this:
CreateField('~MyEnumField', 'type',
choices=(<MyEnum.MYVALUE: 'My value'>, <MyEnum.OTHERVALUE: 'Other value'>),
...
)
I would expect something like this (along with the necessary import):
choices=(MyEnum.MYVALUE, MyEnum.OTHERVALUE),
I am hitting the same issue. Is there a way forward?