From: Eevee Date: Sun, 25 Oct 2009 00:16:22 +0000 (-0700) Subject: Merge branch 'master' of git@veekun.com:floof X-Git-Url: http://git.veekun.com/zzz-floof.git/commitdiff_plain/482924ec2b85600ccb905a3ee53b1ca6df419ab6?hp=a6ba3df7e2cc2c56950c88d81748dbd1ffe436c7 Merge branch 'master' of git@veekun.com:floof --- diff --git a/floof/model/comments.py b/floof/model/comments.py index 5e57c14..ef3a948 100644 --- a/floof/model/comments.py +++ b/floof/model/comments.py @@ -83,10 +83,10 @@ class Comment(Entity): # comment's left/right Comment.query.filter(Comment.discussion == self.discussion) \ .filter(Comment.left >= parent_right) \ - .update({ Comment.left: Comment.left + 2 }) + .update({ 'left': Comment.left + 2 }) Comment.query.filter(Comment.discussion == self.discussion) \ .filter(Comment.right >= parent_right) \ - .update({ Comment.right: Comment.right + 2 }) + .update({ 'right': Comment.right + 2 }) # Then stick the new comment in the right place self.left = parent_right