I'm using the Peewee ORM in my Flask website and I now want to build a versioned/history table so that I can track changes to records. I'm following the basic SQL structure from this SO answer.
So to do this I need some way inserting triggers for the .save() methods of the fields, and I think I once read about some kind of before_save and after_save hooks, but I can't find anything like that anymore.
So does anybody know how I can hook up extra methods to saving, updating and deleting records, as well as creating tables in the Peewee ORM?
All tips are welcome!