summaryrefslogtreecommitdiff
path: root/controller.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2011-02-15 05:20:15 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2011-02-15 05:20:15 +0100
commit2e663fa91e1f14c5406fb19fac7e6b2b8d7a64ad (patch)
tree30192b8db6737adddec447d047ea71b41a3bf456 /controller.py
parent2a175ffc26a655a9600f96f044c0b3a6a8ce2321 (diff)
downloadkosten-2e663fa91e1f14c5406fb19fac7e6b2b8d7a64ad.tar.gz
kosten-2e663fa91e1f14c5406fb19fac7e6b2b8d7a64ad.tar.bz2
kosten-2e663fa91e1f14c5406fb19fac7e6b2b8d7a64ad.zip
Allow deletion of prev
Diffstat (limited to 'controller.py')
-rw-r--r--controller.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/controller.py b/controller.py
index 0980b54..5770440 100644
--- a/controller.py
+++ b/controller.py
@@ -176,6 +176,8 @@ class ConstAdd:
if int(f.prev.value) != -1:
e.prev = ConstExpense.get(f.prev.value)
+ else:
+ e.prev = None
raise web.seeother("/const/%s" % e.id)
else: