From f7bbe832d768cf91681d1d6f1c3a089c68718ebe 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/models.py b/ihatemoney/models.py index c7dee1856..3272cf41c 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()