this is my model class
class Type(enum.Enum): Certified = \"certified\" Non_Certified = \"non-certified\" class Status(enum.Enum): Approved = \
Another alternative is to override the __str__ method of your Enum. E.g.
__str__
Enum
class Type(enum.Enum): Certified = "certified" Non_Certified = "non-certified" def __str__(self): return self.value