parameters: (self)
return_statement: return reverse('election-comments',
              kwargs=dict(username=self.election.agora.creator.username,
                  agoraname=self.election.agora.name,
                  electionname=self.election.name))
docstring: After creating the comment, post the action and show last comments
docstring_summary: After creating the comment, post the action and show last comments
docstring_tokens: After creating the comment post the action and show last comments
function: def get_success_url(self):
          '''
          After creating the comment, post the action and show last comments
          '''
          comment = self.object
  
          messages.add_message(self.request, messages.SUCCESS, _('Your comment '
              'was successfully posted.'))
  
          if not is_following(self.request.user, self.election):
              follow(self.request.user, self.election, actor_only=False, request=self.request)
  
          return reverse('election-comments',
              kwargs=dict(username=self.election.agora.creator.username,
                  agoraname=self.election.agora.name,
                  electionname=self.election.name))
function_tokens: def get_success_url ( self ) : comment = self . object messages . add_message ( self . request , messages . SUCCESS , _ ( 'Your comment ' 'was successfully posted.' ) ) if not is_following ( self . request . user , self . election ) : follow ( self . request . user , self . election , actor_only = False , request = self . request ) return reverse ( 'election-comments' , kwargs = dict ( username = self . election . agora . creator . username , agoraname = self . election . agora . name , electionname = self . election . name ) )