diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-02-18 13:49:49 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-02-18 13:49:49 +0100 |
commit | f827738cae3fae577d0ea8cb079b0569db384d0a (patch) | |
tree | 86217b6577cbc8cc66fe63be254e06a672144e9c | |
parent | 81732ed53cf5f262866360b82da98b0a1a702d4f (diff) | |
download | kosten-f827738cae3fae577d0ea8cb079b0569db384d0a.tar.gz kosten-f827738cae3fae577d0ea8cb079b0569db384d0a.tar.bz2 kosten-f827738cae3fae577d0ea8cb079b0569db384d0a.zip |
BUG: Categories were not added
Diffstat (limited to '')
-rw-r--r-- | controller.py | 2 |
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 |