mongoengine-migrate icon indicating copy to clipboard operation
mongoengine-migrate copied to clipboard

Handling `EnumField` choices

Open prihoda opened this issue 3 years ago • 1 comments

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),

prihoda avatar Apr 26 '21 06:04 prihoda

I am hitting the same issue. Is there a way forward?

23pointsNorth avatar Sep 21 '22 15:09 23pointsNorth