diff --git a/budget/forms.py b/budget/forms.py index cf5068b..1049485 100644 --- a/budget/forms.py +++ b/budget/forms.py @@ -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)