{{ object.title }} {% get_comment_count for object as numcom %} {{numcom}}
{% endfor %}
And this is in a different page in a different view
{% voting_script %}
{% vote_buttons_for object %}
{{ object.title }}
{% get_comment_count for object as numcom %} {{numcom}}
The second example is always one less than the previous example. The correct vote button is highlighted but the number is incorrect. i.e if I voted up, clicking the upvote button in the second page will clear the vote instead of adding another one but the number the page loads with is wrong by -1
I have this in one page and a view:
{% voting_script %}
{% for object in submissions %}
{% get_comment_count for object as numcom %} {{numcom}}
{% endfor %}
And this is in a different page in a different view {% voting_script %}
{% get_comment_count for object as numcom %} {{numcom}}
The second example is always one less than the previous example. The correct vote button is highlighted but the number is incorrect. i.e if I voted up, clicking the upvote button in the second page will clear the vote instead of adding another one but the number the page loads with is wrong by -1