@register.filter
def rate_url(obj, score=1):
    return reverse('ratings_rate_object', args=(
        ContentType.objects.get_for_model(obj).pk,
        obj.pk,
        score,
    ))
Generates a link to "rate" the given object with the provided score - this
dataset/ETHPy150Open django-de/django-simple-ratings/ratings/templatetags/ratings_tags.py/rate_url