From 5fc7acab27129748b254aa16e59d7b654ea0b417 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 15 Feb 2011 04:16:32 +0100 Subject: fix --- controller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controller.py b/controller.py index e63f22f..4314d34 100644 --- a/controller.py +++ b/controller.py @@ -256,7 +256,10 @@ class ConstEdit (ConstAdd): return render(self.template, form = f) - def POST(self, id): + def POST(self, id, fromId = None): + if id == "from": + id = fromId + exp = ConstExpense.get(id) self.get_expense = lambda *x: exp return ConstAdd.POST(self) -- cgit v1.2.3-54-g00ecf