-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bill Type: Invalid Choice: could not coerce. #1293
Labels
Comments
Ping @TomRoussel |
rriski
added a commit
to rriski/ihatemoney
that referenced
this issue
Mar 23, 2024
Error introduced in spiral-project#1290. Fixes spiral-project#1293.
rriski
added a commit
to rriski/ihatemoney
that referenced
this issue
Mar 23, 2024
Error introduced in spiral-project#1290. Fixes spiral-project#1293.
Opened a PR with a fix #1294 |
rriski
added a commit
to rriski/ihatemoney
that referenced
this issue
Mar 23, 2024
Error introduced in spiral-project#1290. Fixes spiral-project#1293.
Hmm, I did manually test the form at one point. But I think I changed the way the frontend showed the bill type choices since then, sorry! I'll also have a look at the PR :) |
rriski
added a commit
to rriski/ihatemoney
that referenced
this issue
Mar 24, 2024
Error introduced in spiral-project#1290. Fixes spiral-project#1293.
rriski
added a commit
to rriski/ihatemoney
that referenced
this issue
Mar 26, 2024
Error introduced in spiral-project#1290. Fixes spiral-project#1293.
rriski
added a commit
to rriski/ihatemoney
that referenced
this issue
Mar 26, 2024
Error introduced in spiral-project#1290. Fixes spiral-project#1293.
rriski
added a commit
to rriski/ihatemoney
that referenced
this issue
Mar 28, 2024
Error introduced in spiral-project#1290. Fixes spiral-project#1293. WTForms needs to be bumped to >=2.3.2 as it includes a fix to `SelectField` which is required for this change to work. See: - https://wtforms.readthedocs.io/en/3.1.x/changes/#version-2-3-2 - pallets-eco/wtforms#598
zorun
pushed a commit
that referenced
this issue
Mar 28, 2024
Error introduced in #1290. Fixes #1293. WTForms needs to be bumped to >=2.3.2 as it includes a fix to `SelectField` which is required for this change to work. See: - https://wtforms.readthedocs.io/en/3.1.x/changes/#version-2-3-2 - pallets-eco/wtforms#598
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After #1290 I receive "Bill Type: Invalid Choice: could not coerce" when attempting to add new bills. Changing the bill type doesn't help.
The request that is going out to
POST /<project>/add
:I believe the issue could be in how the BillType enum is coerced by WTForms, see https://stackoverflow.com/a/49376245. BillType doesn't have a
coerce
classmethod:ihatemoney/ihatemoney/models.py
Lines 54 to 60 in 4af4c10
I'm running the ihatemoney/ihatemoney:master docker image. Here are my pip dependencies:
The text was updated successfully, but these errors were encountered: