summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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: