diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-09-28 18:57:16 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-09-28 18:57:16 -0400 |
commit | 924c0887ecab6bf7153d34a976145c4aa874a1ba (patch) | |
tree | 718eeb3e2d77dd358813c22c40e63abdf7010322 | |
parent | c4f5d4ed97362441c1a9eb512c389b3f8fd25523 (diff) | |
download | askbot-924c0887ecab6bf7153d34a976145c4aa874a1ba.tar.gz askbot-924c0887ecab6bf7153d34a976145c4aa874a1ba.tar.bz2 askbot-924c0887ecab6bf7153d34a976145c4aa874a1ba.zip |
fixed bug in a query
-rw-r--r-- | askbot/models/question.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/askbot/models/question.py b/askbot/models/question.py index 993463b0..82fa60d1 100644 --- a/askbot/models/question.py +++ b/askbot/models/question.py @@ -182,10 +182,10 @@ class QuestionManager(models.Manager): qs = qs.distinct() qs = qs.select_related( 'last_activity_by__id', - 'last_activity_by__username' - 'last_activity_by__reputation' - 'last_activity_by__gold' - 'last_activity_by__silver' + 'last_activity_by__username', + 'last_activity_by__reputation', + 'last_activity_by__gold', + 'last_activity_by__silver', 'last_activity_by__bronze' ) return qs, meta_data |