Anton Shestakov <engored@ya.ru>, Tue, 25 Dec 2012 17:09:32 +0900
Since CodernityDB 0.4.0 get_many is not limited to 1 item by default, so omit limit=-1.
--- a/app.py Fri Dec 21 10:45:26 2012 +0900
+++ b/app.py Tue Dec 25 17:09:32 2012 +0900
safe_fields = ('name', 'color')
def delete(self, resource_id):
- for task in g.db.get_many('task', resource_id, limit=-1, with_doc=True):
+ for task in g.db.get_many('task', resource_id, with_doc=True):
response = g.db.delete(task['doc'])
return super(Project, self).delete(resource_id)