diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-13 21:24:13 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-13 21:24:23 +0200 |
| commit | b7ba8e43c4545d352f197237f349ab77e6a15544 (patch) | |
| tree | 1680ca140b951d39b11d3392f198b0ed72224b73 /budget/forms.py | |
| parent | fdb75316d62422a848417155d8711c46277623fe (diff) | |
| download | ihatemoney-mirror-b7ba8e43c4545d352f197237f349ab77e6a15544.zip ihatemoney-mirror-b7ba8e43c4545d352f197237f349ab77e6a15544.tar.gz ihatemoney-mirror-b7ba8e43c4545d352f197237f349ab77e6a15544.tar.bz2 | |
Coerce the payer choice to int, default is unicode. Fix #33
Diffstat (limited to 'budget/forms.py')
| -rw-r--r-- | budget/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
