get_karma_total() returns total Karma for an entire site, not for an associated comment.
While Django's Karma is designed to give it to the comments, counting methods of get_karma_total(), get_good_karma_total(), and get_bad_karma_total() return the number for an entire site, not for the comments.
For instance, with the following typical usage of Krama counting methods, all goods and bads below ends up showing the same number for each.
{% for comment in comment_list %}
<div>
<p>{{ comment.user }}</p>
<p>{{ comment.comment }}</p>
<p>Good ({{ comment.get_good_karma_total }})
Bad ({{ comment.get_bad_karma_total }})</p>
</div>
{% endfor %}
Change History
(5)
Status: |
new → assigned
|
Summary: |
get_karma_total() returns total for an entire site, not for an associated comment. → get_karma_total() returns total Karma for an entire site, not for an associated comment.
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Resolution: |
→ wontfix
|
Status: |
reopened → closed
|
django.contrib.comments is up for a rewrite, so I'll be bold and mark this as wontfix - see James' response on #6651 and http://groups.google.com/group/django-developers/msg/503e43c0a71c6b8b