Business logic often requires us to update records by changing the values of some of their fields. This recipe shows you how to modify the date field of the partner as we go.
This recipe will use the same simplified library.book definition of the Creating new records recipe. You may refer to this simplified definition to find out about the fields.
We have the date_updated field in the library.book model. For illustration purposes, we will write on this field with the click of a button.
To update a book...