pyairtable icon indicating copy to clipboard operation
pyairtable copied to clipboard

Track changes made to ORM fields since fetch/save

Open mesozoic opened this issue 3 years ago • 0 comments

I have some use cases that require me to keep track of which fields I've changed. This branch adds a new public property to each model, Model.changes, which will record any changes made to the model's fields since the last time it was fetched or persisted. The implementation relies on each field telling the model instance about a change as it happens.

This could probably be a lot more robust and featureful, but I didn't want to overcomplicate things before writing a few tests for the basics and opening a branch.

mesozoic avatar Jun 09 '22 21:06 mesozoic