Skip to content

Commit

Permalink
fix: 'Bill Type: Invalid Choice: could not coerce' error
Browse files Browse the repository at this point in the history
Error introduced in #1290. Fixes #1293.
  • Loading branch information
rriski committed Mar 26, 2024
1 parent 510c8db commit fb0111c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ihatemoney/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fb0111c

Please sign in to comment.