summaryrefslogtreecommitdiffstats
path: root/askbot
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-02-13 15:47:33 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-02-13 15:47:33 -0300
commit4403c7c610c2cdf98bcfbb44cdd75ec6a1a15cae (patch)
treec59932fdcabb5eb643ad4cbf4384f4cdfe0bd4d9 /askbot
parent38070d93fc53abc1ae9ddb68f4ec2a50112b0f4d (diff)
downloadaskbot-4403c7c610c2cdf98bcfbb44cdd75ec6a1a15cae.tar.gz
askbot-4403c7c610c2cdf98bcfbb44cdd75ec6a1a15cae.tar.bz2
askbot-4403c7c610c2cdf98bcfbb44cdd75ec6a1a15cae.zip
added distinct constraint to run advanced search function
Diffstat (limited to 'askbot')
-rw-r--r--askbot/models/question.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/models/question.py b/askbot/models/question.py
index 6c2fa383..6daa3057 100644
--- a/askbot/models/question.py
+++ b/askbot/models/question.py
@@ -248,7 +248,7 @@ class ThreadManager(models.Manager):
#print qs.query
- return qs, meta_data
+ return qs.distinct(), meta_data
def precache_view_data_hack(self, threads):
# TODO: Re-enable this when we have a good test cases to verify that it works properly.