示例#1
0
 def get_url(self):
     """Returns a hyperlink of the current BlogPost instance."""
     return reverse_url('blog-detail',
         args=[self.user.username, self.title_slug])
示例#2
0
 def get_url(self):
     """Returns a url to the job listing's page."""
     return reverse_url('job-detail', args=[self.pk])
示例#3
0
 def get_url(self):
     return reverse_url('user-detail', args=[self.username])
示例#4
0
 def get_company_url(self):
     """Returns the url for the company"""
     return reverse_url('job-company-list', args=[self.company_slug])