From fb0111c91a1197aa58463b542f759ef8b3a58f33 Mon Sep 17 00:00:00 2001 From: Timo Riski Date: Sat, 23 Mar 2024 16:49:42 +0200 Subject: [PATCH] fix: 'Bill Type: Invalid Choice: could not coerce' error Error introduced in #1290. Fixes #1293. --- ihatemoney/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ihatemoney/models.py b/ihatemoney/models.py index c7dee1856..bae18bca1 100644 --- a/ihatemoney/models.py +++ b/ihatemoney/models.py @@ -58,7 +58,8 @@ 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()