Show More
@@ -17,7 +17,8 b' class TagManager(models.Manager):' | |||
|
17 | 17 | """ |
|
18 | 18 | |
|
19 | 19 | return self.filter(thread__archived=False)\ |
|
20 | .annotate(num_threads=Count('thread')).filter(num_threads__gt=0) | |
|
20 | .annotate(num_threads=Count('thread')).filter(num_threads__gt=0)\ | |
|
21 | .order_by('-required') | |
|
21 | 22 | |
|
22 | 23 | |
|
23 | 24 | class Tag(models.Model, Viewable): |
General Comments 0
You need to be logged in to leave comments.
Login now