def date_updated(node):
 try:
  return node.logs.latest().date
 except IndexError:
  return node.date_created

def date_updated ( node ) : try : return node . logs . latest ( ) . date except IndexError : return node . date_created
the most recent datetime when this node was modified .