summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-02-18 13:49:49 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-02-18 13:49:49 +0100
commitf827738cae3fae577d0ea8cb079b0569db384d0a (patch)
tree86217b6577cbc8cc66fe63be254e06a672144e9c
parent81732ed53cf5f262866360b82da98b0a1a702d4f (diff)
downloadkosten-f827738cae3fae577d0ea8cb079b0569db384d0a.tar.gz
kosten-f827738cae3fae577d0ea8cb079b0569db384d0a.tar.bz2
kosten-f827738cae3fae577d0ea8cb079b0569db384d0a.zip
BUG: Categories were not added
Diffstat (limited to '')
-rw-r--r--controller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller.py b/controller.py
index f0e7e4c..470bf1f 100644
--- a/controller.py
+++ b/controller.py
@@ -314,7 +314,7 @@ class Cat:
def POST(self):
for id, name in web.input().iteritems():
if id.startswith("n-"):
- Category(name = name)
+ web.ctx.orm.add(Category(name = name))
else:
Category.get(id).name = name