pyairtable
pyairtable copied to clipboard
Track changes made to ORM fields since fetch/save
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.