def delete(user): p = Pydo(user) p.findAndProcess(request.data, lambda t: p.delete(t)) p.save()
def delete(user): p = Pydo(user) t = Task(request.data) p.delete(t) p.save()