def current_revision_link(obj):
 if (not obj.current_revision):
  return 'None'
 rev = obj.current_revision
 rev_url = reverse('admin:wiki_revision_change', args=[rev.id])
 return ('<a href="%s">Current&nbsp;Revision&nbsp;(#%s)</a>' % (rev_url, rev.id))

def current_revision_link ( obj ) : if ( not obj . current_revision ) : return 'None' rev = obj . current_revision rev_url = reverse ( 'admin:wiki_revision_change' , args = [ rev . id ] ) return ( '<a href="%s">Current&nbsp;Revision&nbsp;(#%s)</a>' % ( rev_url , rev . id ) )
html link to the current revision for the admin change list .