diff --git a/ihatemoney/models.py b/ihatemoney/models.py index c7dee185..3272cf41 100644 --- a/ihatemoney/models.py +++ b/ihatemoney/models.py @@ -58,7 +58,7 @@ class BillType(Enum): @classmethod def choices(cls): - return [(choice, choice.value) for choice in cls] + return [(choice.value, choice.value) for choice in cls] db = SQLAlchemy() diff --git a/pyproject.toml b/pyproject.toml index cc6199a0..ee8ad57b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dependencies = [ "Flask-SQLAlchemy>=2.4,<3", "Flask-Talisman>=0.8,<2", "Flask-WTF>=0.14.3,<2", - "WTForms>=2.3.1,<3.2", + "WTForms>=2.3.3,<3.2", "Flask>=2,<3", "Werkzeug>=2,<3", "itsdangerous>=2,<3",