Download:
child 3:fd68ae95de5e
parent 1:e2ac489d7045
2:cc1e5f212e6c
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.

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
app.py file | annotate | diff | comparison | revisions
--- a/app.py Fri Dec 21 10:45:26 2012 +0900
+++ b/app.py Tue Dec 25 17:09:32 2012 +0900
@@ -98,7 +98,7 @@
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)