Changeset 403:cbf8da738b29
- Timestamp:
- Mar 5, 2012 12:10:32 AM (15 months ago)
- Branch:
- default
- File:
-
- 1 edited
-
djangobb_forum/models.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
djangobb_forum/models.py
r402 r403 321 321 if forum_settings.REPUTATION_SUPPORT: 322 322 qs = qs.extra(select={ 323 'reply_total': 'Select sum(sign) from djangobb_forum_reputation where to_user_id = djangobb_forum_profile.user_id group byto_user_id',324 'reply_count_minus': "Select sum(sign) from djangobb_forum_reputation where to_user_id = djangobb_forum_profile.user_id and sign = '-1' group byto_user_id",325 'reply_count_plus': "Select sum(sign) from djangobb_forum_reputation where to_user_id = djangobb_forum_profile.user_id and sign = '1' group byto_user_id",323 'reply_total': 'SELECT SUM(sign) FROM djangobb_forum_reputation WHERE to_user_id = djangobb_forum_profile.user_id GROUP BY to_user_id', 324 'reply_count_minus': "SELECT SUM(sign) FROM djangobb_forum_reputation WHERE to_user_id = djangobb_forum_profile.user_id AND sign = '-1' GROUP BY to_user_id", 325 'reply_count_plus': "SELECT SUM(sign) FROM djangobb_forum_reputation WHERE to_user_id = djangobb_forum_profile.user_id AND sign = '1' GROUP BY to_user_id", 326 326 }) 327 327 return qs
Note: See TracChangeset
for help on using the changeset viewer.
