def parent_document_link(obj):
 if (not obj.parent):
  return ''
 url = reverse('admin:wiki_document_change', args=[obj.parent.id])
 return ('<a href="%s">Translated&nbsp;from&nbsp;(#%s)</a>' % (url, obj.parent.id))

def parent_document_link ( obj ) : if ( not obj . parent ) : return '' url = reverse ( 'admin:wiki_document_change' , args = [ obj . parent . id ] ) return ( '<a href="%s">Translated&nbsp;from&nbsp;(#%s)</a>' % ( url , obj . parent . id ) )
html link to the topical parent document for admin change list .