示例#1
0
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
示例#2
0
def task_saved(sender, **kwargs):
    try:
        instance = kwargs["instance"]
        dudley.update("tasks", json.dumps(task_to_raw(instance)))
    except:
        pass