Commits

Paola Coccia  committed 20d1bf0

Fixed "get_latest_votes_by templatetag is broken" issue.

  • Participants
  • Parent commits 7da58e8

Comments (0)

Files changed (1)

File ratings/templatetags/ratings_tags.py

     
     .. code-block:: html+django
     
-        {% get_latest_votes_by user uning 'mystaff' as latest_votes %}
+        {% get_latest_votes_by user using 'mystaff' as latest_votes %}
         {% for vote in latest_votes|slice:":10" %}
             Vote for {{ vote.content_object }}: {{ vote.score }}
         {% endfor %}
                 latest_votes = handler.get_votes_for(target_object, **lookups)
                 context[self.varname] = latest_votes.order_by('modified_at')
         else:
-            user = self.target_object.resolve(user)
+            user = self.user.resolve(context)
             latest_votes = handlers.ratings.get_votes_by(user, **lookups)
             context[self.varname] = latest_votes.order_by('modified_at')
         return u''