diff options
Diffstat (limited to 'controller.py')
-rw-r--r-- | controller.py | 5 |
1 files changed, 4 insertions, 1 deletions
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) |