diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-02-13 15:47:33 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-02-13 15:47:33 -0300 |
commit | 4403c7c610c2cdf98bcfbb44cdd75ec6a1a15cae (patch) | |
tree | c59932fdcabb5eb643ad4cbf4384f4cdfe0bd4d9 /askbot | |
parent | 38070d93fc53abc1ae9ddb68f4ec2a50112b0f4d (diff) | |
download | askbot-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.py | 2 |
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. |