def follow_all_url(parser, token):
 bits = token.split_contents()
 if (len(bits) != 2):
  raise TemplateSyntaxError('Accepted format {% follow_all_url [instance] %}')
 else:
  return DisplayActivityFollowUrl(bits[1], actor_only=False)

def follow_all_url ( parser , token ) : bits = token . split_contents ( ) if ( len ( bits ) != 2 ) : raise TemplateSyntaxError ( 'Accepted format {% follow_all_url [instance] %}' ) else : return DisplayActivityFollowUrl ( bits [ 1 ] , actor_only = False )
renders the url to follow an object as both actor and target <a href="{% follow_all_url other_user %}"> {% if request .