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 spiral-project#1290. Fixes spiral-project#1293.
  • Loading branch information
rriski committed Mar 24, 2024
1 parent 4af4c10 commit 1f18c17
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 @@ -57,7 +57,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 1f18c17

Please sign in to comment.