def related_revisions_link(obj):
 link = ('%s?%s' % (reverse('admin:wiki_revision_changelist', args=[]), ('document__exact=%s' % obj.id)))
 count = obj.revisions.count()
 what = (((count == 1) and 'revision') or 'revisions')
 return ('<a href="%s">%s&nbsp;%s</a>' % (link, count, what))

def related_revisions_link ( obj ) : link = ( '%s?%s' % ( reverse ( 'admin:wiki_revision_changelist' , args = [ ] ) , ( 'document__exact=%s' % obj . id ) ) ) count = obj . revisions . count ( ) what = ( ( ( count == 1 ) and 'revision' ) or 'revisions' ) return ( '<a href="%s">%s&nbsp;%s</a>' % ( link , count , what ) )
html link to related revisions for admin change list .