diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2011-02-15 05:20:15 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2011-02-15 05:20:15 +0100 |
commit | 2e663fa91e1f14c5406fb19fac7e6b2b8d7a64ad (patch) | |
tree | 30192b8db6737adddec447d047ea71b41a3bf456 /controller.py | |
parent | 2a175ffc26a655a9600f96f044c0b3a6a8ce2321 (diff) | |
download | kosten-2e663fa91e1f14c5406fb19fac7e6b2b8d7a64ad.tar.gz kosten-2e663fa91e1f14c5406fb19fac7e6b2b8d7a64ad.tar.bz2 kosten-2e663fa91e1f14c5406fb19fac7e6b2b8d7a64ad.zip |
Allow deletion of prev
Diffstat (limited to 'controller.py')
-rw-r--r-- | controller.py | 2 |
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: |