diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-11-28 01:07:06 +0100 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-11-28 01:07:06 +0100 |
| commit | 05e7a7934a938853332504f3c863d16c8cf482cd (patch) | |
| tree | 6944e20dd77506c8efa6b61b9bbc35dbb5d1b07c /budget/forms.py | |
| parent | 7dd7d1d14fbb3c85cbda4b0af4c949e17ce2329f (diff) | |
| download | ihatemoney-mirror-05e7a7934a938853332504f3c863d16c8cf482cd.zip ihatemoney-mirror-05e7a7934a938853332504f3c863d16c8cf482cd.tar.gz ihatemoney-mirror-05e7a7934a938853332504f3c863d16c8cf482cd.tar.bz2 | |
Fix #59. Edit now works properly
Diffstat (limited to 'budget/forms.py')
| -rw-r--r-- | budget/forms.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/budget/forms.py b/budget/forms.py index 7d8d8e1..0e95c73 100644 --- a/budget/forms.py +++ b/budget/forms.py @@ -117,8 +117,7 @@ class BillForm(Form): bill.amount=self.amount.data bill.what=self.what.data bill.date=self.date.data - bill.owers = [Person.query.get(ower, project) - for ower in self.payed_for.data] + bill.owers = [Person.query.get(ower, project) for ower in self.payed_for.data] return bill @@ -127,7 +126,7 @@ class BillForm(Form): self.amount.data = bill.amount self.what.data = bill.what self.date.data = bill.date - self.payed_for.data = [str(ower.id) for ower in bill.owers] + self.payed_for.data = [int(ower.id) for ower in bill.owers] def set_default(self): self.payed_for.data = self.payed_for.default |
