signals

Module: espressodb.base.signals

base_save_handler(sender, **kwargs)

Runs pre save logic of Base class

base_m2m_add_handler(sender, **kwargs)

Runs many to many pre add logic of Base class


Signal processing functions for the base class

Includes checks to run on save.

base_m2m_add_handler(sender, **kwargs)[source]

Runs many to many pre add logic of Base class

This calls the check_m2m_consistency method of the class containing the m2m column.

Note

For revese adding elements, the pk_set is sorted.

base_save_handler(sender, **kwargs)[source]

Runs pre save logic of Base class

This calls the .pre_save() and .check_consistency() method of the instance.