# HG changeset patch # User neko259 # Date 2015-01-11 22:20:23 # Node ID 1ad4b54ed5fe07b2a8d70adcbc50562784adb813 # Parent b28a856fb2fc0bb9b672968e016bbb6c70f1d7de Fixed tag ordering that was broken with latest change diff --git a/boards/models/tag.py b/boards/models/tag.py --- a/boards/models/tag.py +++ b/boards/models/tag.py @@ -17,7 +17,8 @@ class TagManager(models.Manager): """ return self.filter(thread__archived=False)\ - .annotate(num_threads=Count('thread')).filter(num_threads__gt=0) + .annotate(num_threads=Count('thread')).filter(num_threads__gt=0)\ + .order_by('-required') class Tag(models.Model, Viewable):