diff --git a/boards/models/tag.py b/boards/models/tag.py --- a/boards/models/tag.py +++ b/boards/models/tag.py @@ -56,9 +56,13 @@ class Tag(models.Model, Viewable): def get_thread_count(self) -> int: return self.get_threads().count() + # TODO Remove this and use get_absolute_url def get_url(self): return reverse('tag', kwargs={'tag_name': self.name}) + def get_absolute_url(self): + return self.get_url() + def get_threads(self): return self.thread_set.order_by('-bump_time') @@ -67,7 +71,7 @@ class Tag(models.Model, Viewable): def get_view(self): link = '{}'.format( - self.get_url(), self.name) + self.get_absolute_url(), self.name) if self.is_required(): link = '{}'.format(link) return link