def task_destroyed(sender, **kwargs): try: instance = kwargs["instance"] data = task_to_raw(instance) data["DELETE"] = True dudley.update("tasks", json.dumps(data)) except: pass
def task_saved(sender, **kwargs): try: instance = kwargs["instance"] dudley.update("tasks", json.dumps(task_to_raw(instance))) except: pass