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

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