{% load rating_tags %} {% load humanize %} {% with rating=object|get_rating your_rating=object|get_user_rating:user votes=object|get_vote_count %} {% for n in 5|get_range %} {% if user.is_authenticated and rating_status != 'off' %} {% else %} {% endif %} {% endfor %} {% if rating_status != 'off' %}
{% endif %} ({% if rating_status != 'off' %}{{ rating }} star average out of {% endif %}{{ votes|intcomma }} vote{{ votes|pluralize:'s' }}) {% endwith %}