Opened 17 years ago

Closed 17 years ago

#6437 closed (wontfix)

get_karma_total() returns total Karma for an entire site, not for an associated comment.

Reported by: Naoki Hiroshima Owned by: Naoki Hiroshima
Component: contrib.comments Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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 %}

Attachments (1)

karmacounting.diff (1.1 KB ) - added by Naoki Hiroshima 17 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Naoki Hiroshima, 17 years ago

Status: newassigned
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.

by Naoki Hiroshima, 17 years ago

Attachment: karmacounting.diff added

comment:2 by Naoki Hiroshima, 17 years ago

Resolution: fixed
Status: assignedclosed

comment:3 by Naoki Hiroshima, 17 years ago

Resolution: fixed
Status: closedreopened

comment:4 by Pete Crosier, 17 years ago

Resolution: wontfix
Status: reopenedclosed

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

Note: See TracTickets for help on using tickets.
Back to Top