Commit 821fc90049e40c8fe9e9f0edef35398159dba53f
1 parent
66c1700c
Exists in
master
and in
39 other branches
Only showing related threads
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/super_archives/models.py
... | ... | @@ -160,7 +160,8 @@ class Thread(models.Model): |
160 | 160 | |
161 | 161 | def get_related(self): |
162 | 162 | query_string = u' '.join(self.tags.names()) |
163 | - query_set = SearchQuerySet().filter(content=query_string) | |
163 | + query_set = SearchQuerySet().filter(content=query_string, | |
164 | + type='thread') | |
164 | 165 | return query_set.exclude(django_id=self.pk) |
165 | 166 | |
166 | 167 | def save(self, *args, **kwargs): | ... | ... |