def render(self, context):
        try:
            user = template.resolve_variable(self.request, context)
            obj = template.resolve_variable(self.obj, context)
            field = getattr(obj, self.field_name)
        except template.VariableDoesNotExist:
            return ''
        try:
            vote = field.get_rating_for_user(user)
            context[self.context_var] = vote
        except __HOLE__:
            context[self.context_var] = 0
        return ''
dataset/ETHPy150Open dcramer/django-ratings/djangoratings/templatetags/ratings.py/RatingByUserNode.render