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 f7bbe83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ihatemoney/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f7bbe83

Please sign in to comment.