def topic_sibling_documents_link(obj):
 if (not obj.parent_topic):
  return ''
 count = obj.parent_topic.children.count()
 if (not count):
  return ''
 link = ('%s?%s' % (reverse('admin:wiki_document_changelist', args=[]), ('parent_topic__exact=%s' % obj.parent_topic.id)))
 what = (((count == 1) and 'sibling') or 'siblings')
 return ('<a href="%s">%s&nbsp;%s</a>' % (link, count, what))

def topic_sibling_documents_link ( obj ) : if ( not obj . parent_topic ) : return '' count = obj . parent_topic . children . count ( ) if ( not count ) : return '' link = ( '%s?%s' % ( reverse ( 'admin:wiki_document_changelist' , args = [ ] ) , ( 'parent_topic__exact=%s' % obj . parent_topic . id ) ) ) what = ( ( ( count == 1 ) and 'sibling' ) or 'siblings' ) return ( '<a href="%s">%s&nbsp;%s</a>' % ( link , count , what ) )
html link to a list of sibling documents .