1
0
Fork 0
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:
Alexis Metaireau 2011-10-13 21:24:13 +02:00
parent fdb75316d6
commit b7ba8e43c4

View file

@ -100,7 +100,7 @@ class PasswordReminder(Form):
class BillForm(Form):
date = DateField("Date", validators=[Required()], default=datetime.now)
what = TextField("What?", validators=[Required()])
payer = SelectField("Payer", validators=[Required()])
payer = SelectField("Payer", validators=[Required()], coerce=int)
amount = DecimalField("Amount payed", validators=[Required()])
payed_for = SelectMultipleField("Who has to pay for this?",
validators=[Required()], widget=select_multi_checkbox)