summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-08-23 19:02:01 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-08-23 19:02:01 -0400
commit12e29266d9c96a44b1d6e8f229ede4f6b0eb8aad (patch)
tree0b9d0b0b2c3860f096c38abb231ecbc8bf751903
parent053b69a69ad8aa788f813f382f58d9d1f0fa1b42 (diff)
downloadaskbot-12e29266d9c96a44b1d6e8f229ede4f6b0eb8aad.tar.gz
askbot-12e29266d9c96a44b1d6e8f229ede4f6b0eb8aad.tar.bz2
askbot-12e29266d9c96a44b1d6e8f229ede4f6b0eb8aad.zip
fixed a bug in tag filtering
-rw-r--r--askbot/models/content.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/models/content.py b/askbot/models/content.py
index 5ebcb7e3..eaba4fd6 100644
--- a/askbot/models/content.py
+++ b/askbot/models/content.py
@@ -222,7 +222,7 @@ class Content(models.Model):
if user.tag_filter_setting == 'interesting':
#at least some of the tags must be marked interesting
- interesting_selections = user.tag_selections.exists(
+ interesting_selections = user.tag_selections.filter(
tag__in = tags,
reason = 'good'
)