mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Coerce the payer choice to int, default is unicode. Fix #33
This commit is contained in:
parent
fdb75316d6
commit
b7ba8e43c4
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class PasswordReminder(Form):
|
||||||
class BillForm(Form):
|
class BillForm(Form):
|
||||||
date = DateField("Date", validators=[Required()], default=datetime.now)
|
date = DateField("Date", validators=[Required()], default=datetime.now)
|
||||||
what = TextField("What?", validators=[Required()])
|
what = TextField("What?", validators=[Required()])
|
||||||
payer = SelectField("Payer", validators=[Required()])
|
payer = SelectField("Payer", validators=[Required()], coerce=int)
|
||||||
amount = DecimalField("Amount payed", validators=[Required()])
|
amount = DecimalField("Amount payed", validators=[Required()])
|
||||||
payed_for = SelectMultipleField("Who has to pay for this?",
|
payed_for = SelectMultipleField("Who has to pay for this?",
|
||||||
validators=[Required()], widget=select_multi_checkbox)
|
validators=[Required()], widget=select_multi_checkbox)
|
||||||
|
|
Loading…
Reference in a new issue