Welcome | Get started | Dive into Lino | Contribute | Reference

Keeping Track of Changes

Since logging of database changes will inevitably cause some extra work, this feature is optional per site and per model.

Usage instructions for application developers:

  • Override the lino.Lino.on_site_startup() method of your Lino instance (in your application's settings.py) with something like this:

    def on_site_startup(self):
        self.modules.contacts.Person.watch_changes()
        super(Lino,self).on_site_startup()
    

    See lino.core.model.Model.watch_changes() for possible parameters.

  • In the lino.core.actors.Actor.detail_layout of your contact.Person include the lino.ChangesByObject slave table.

    lino.models.ChangesByObject

Implementation

  • lino.core.changes

  • lino.models.Change