db(db.project.id>0).update(number=db.project.id+1000)

db.project.number is a field object, not a field value. that is whay
you cannot use the syntax below.


On May 18, 12:20 pm, greenpoise <[email protected]> wrote:
> How come I cant do this:
>
> db.project.number=db.project.id+1000
>
> I want the project number to be the same as the project id plus 1000

Reply via email to