def get_short_url ( self ) : return reverse ( 'post_short_url' , args = ( self . forum . slug , self . slug , self . id ) )
python reverse call django url from ajax sample
Returns short version of topic url ( without page number )
def get_short_url(self):
        """ Returns short version of topic url (without page number) """
        return reverse('post_short_url', args=(self.forum.slug, self.slug, self.id))