##// END OF EJS Templates
Optimized getting threads for tag.
neko259 -
r183:9bd4c7a4 default
parent child Browse files
Show More
@@ -68,7 +68,7 b' class PostManager(models.Manager):'
68 def get_threads(self, tag=None, page=ALL_PAGES,
68 def get_threads(self, tag=None, page=ALL_PAGES,
69 order_by='-last_edit_time'):
69 order_by='-last_edit_time'):
70 if tag:
70 if tag:
71 threads = self.filter(thread=None, tags=tag)
71 threads = tag.threads
72
72
73 # TODO This needs to be uncommented when 'all tags' view won't
73 # TODO This needs to be uncommented when 'all tags' view won't
74 # use this method to get threads for tag
74 # use this method to get threads for tag
General Comments 0
You need to be logged in to leave comments. Login now