aboutsummaryrefslogtreecommitdiff
path: root/budget/forms.py
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-10-13 21:24:13 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-10-13 21:24:23 +0200
commitb7ba8e43c4545d352f197237f349ab77e6a15544 (patch)
tree1680ca140b951d39b11d3392f198b0ed72224b73 /budget/forms.py
parentfdb75316d62422a848417155d8711c46277623fe (diff)
downloadihatemoney-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.py2
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)