Show More
@@ -23,8 +23,7 b' class TagManager(models.Manager):' | |||
|
23 | 23 | """ |
|
24 | 24 | |
|
25 | 25 | tags = self.annotate(Count('threads')) \ |
|
26 |
.filter(threads__count__gt=0). |
|
|
27 | .order_by('name') | |
|
26 | .filter(threads__count__gt=0).order_by('name') | |
|
28 | 27 | |
|
29 | 28 | return tags |
|
30 | 29 | |
@@ -136,4 +135,4 b' class Tag(models.Model, Viewable):' | |||
|
136 | 135 | def get_view(self, *args, **kwargs): |
|
137 | 136 | return render_to_string('boards/tag.html', { |
|
138 | 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