summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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