def after_model_change(self, form, model, is_created): if is_created: send_async_linux_task(msg=model.serialize, queue="emails", action="new") else: send_async_linux_task(msg=model.serialize, queue="emails", action="edit")
def after_model_delete(self, model): send_async_linux_task(msg=model.serialize, queue="emails", action="delete")