I have this class in my models.py file:
class DepartmentCategory(Enum):
"""The various categories of departments"""
committee = 'Committee'
subcommittee = 'Subcommittee'
that is used in a selectfield for my form. All works well but when I add a new value to the Enum class eg:
class DepartmentCategory(Enum):
"""The various categories of departments"""
general = 'General'
committee = 'Committee'
subcommittee = 'Subcommittee'
saving the new value the database fails and no errors are shown both in terminal and browser. I had already numerously migrated(flask db migrate) and upgraded(flask db upgrade) my database but problem not solved. Please help.