summaryrefslogtreecommitdiff
path: root/controller.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2011-02-15 04:16:32 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2011-02-15 04:16:32 +0100
commit5fc7acab27129748b254aa16e59d7b654ea0b417 (patch)
treefbfb8562495378417e24e4122bfe9e3df1abdc23 /controller.py
parentbf592c7e6de2d774ab6ac129e66e62f9b40b06da (diff)
downloadkosten-5fc7acab27129748b254aa16e59d7b654ea0b417.tar.gz
kosten-5fc7acab27129748b254aa16e59d7b654ea0b417.tar.bz2
kosten-5fc7acab27129748b254aa16e59d7b654ea0b417.zip
fix
Diffstat (limited to '')
-rw-r--r--controller.py5
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)