##// END OF EJS Templates
Include tags that have only archived threads to the general tags list
neko259 -
r700:7ec0b915 1.8-dev
parent child Browse files
Show More
@@ -23,8 +23,7 b' class TagManager(models.Manager):'
23 """
23 """
24
24
25 tags = self.annotate(Count('threads')) \
25 tags = self.annotate(Count('threads')) \
26 .filter(threads__count__gt=0).filter(threads__archived=False) \
26 .filter(threads__count__gt=0).order_by('name')
27 .order_by('name')
28
27
29 return tags
28 return tags
30
29
@@ -136,4 +135,4 b' class Tag(models.Model, Viewable):'
136 def get_view(self, *args, **kwargs):
135 def get_view(self, *args, **kwargs):
137 return render_to_string('boards/tag.html', {
136 return render_to_string('boards/tag.html', {
138 'tag': self,
137 'tag': self,
139 }) No newline at end of file
138 })
General Comments 0
You need to be logged in to leave comments. Login now