# HG changeset patch # User neko259 # Date 2014-06-20 08:39:38 # Node ID 7ec0b91504ca5474582499b6ddfd9bd5c649e585 # Parent e0309bfdef5b56233342201a1a99c6e0274b1c76 Include tags that have only archived threads to the general tags list diff --git a/boards/models/tag.py b/boards/models/tag.py --- a/boards/models/tag.py +++ b/boards/models/tag.py @@ -23,8 +23,7 @@ class TagManager(models.Manager): """ tags = self.annotate(Count('threads')) \ - .filter(threads__count__gt=0).filter(threads__archived=False) \ - .order_by('name') + .filter(threads__count__gt=0).order_by('name') return tags @@ -136,4 +135,4 @@ class Tag(models.Model, Viewable): def get_view(self, *args, **kwargs): return render_to_string('boards/tag.html', { 'tag': self, - }) \ No newline at end of file + })