MCPcopy
hub / github.com/liangliangyy/DjangoBlog / get_absolute_url

Method get_absolute_url

blog/models.py:131–137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129 ]
130
131 def get_absolute_url(self):
132 return reverse('blog:detailbyid', kwargs={
133 'article_id': self.id,
134 'year': self.creation_time.year,
135 'month': self.creation_time.month,
136 'day': self.creation_time.day
137 })
138
139 @cache_decorator(CacheTimeout.HOUR_10)
140 def get_category_tree(self):

Callers 1

test_validate_articleMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_validate_articleMethod · 0.76