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

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