This commit is contained in:
Harry Marr 2011-09-10 11:54:43 +02:00
parent 050542c29b
commit 88b1a29719

View File

@ -124,7 +124,7 @@ the $ positional operator ::
Post.objects(comments__by="joe").update(**{'inc__comments__$__votes': 1}) Post.objects(comments__by="joe").update(**{'inc__comments__$__votes': 1})
However, this doesn't map well to the syntax so you can alos use a capital S instead :: However, this doesn't map well to the syntax so you can also use a capital S instead ::
Post.objects(comments__by="joe").update(inc__comments__S__votes=1) Post.objects(comments__by="joe").update(inc__comments__S__votes=1)