true. the text should be fixed.
On Nov 18, 1:46 am, cjrh <[email protected]> wrote: > Regarding the "compute" attribute of a Field object, the book says > this: > > "compute is an optional function. If a record is inserted and there is > no value for a field that has a compute attribute, the value is > calculated by passing the record (as a dict) to the compute function." > > My current testing, on 1.89.3, shows that compute will run not only > when a record is inserted, but indeed every time any other field in > that same record is updated. I have a field that is a uuid which is > only supposed to be calculated once, on insertion. Also, the > compute function is passed the current record field values as a dict, > but that excludes any value the Field with compute() might currently > have. > > In my opinion, the text in the book is misleading. Thoughts?

