bootstrap-flask icon indicating copy to clipboard operation
bootstrap-flask copied to clipboard

Table should render enum type with their values

Open PanderMusubi opened this issue 3 years ago • 0 comments

Currently, a table renders an enum such as

class MyEnumType(Enum):
    CREATED = 'Created'
    STARTED = 'Started'
    ENDED = 'Ended'

used in

class MyModel(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    state = db.Column(db.Enum(MyEnumType), default=MyEnumType.CREATED, nullable=False)

as MyEnumType.CREATED while Created shoud be shown.

PanderMusubi avatar Aug 21 '20 07:08 PanderMusubi