Skip to content

Commit

Permalink
pass through status
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunsephton committed Jul 6, 2010
1 parent f1f36ed commit 2010453
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion likes/templatetags/likes_inclusion_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
@register.inclusion_tag('likes/inclusion_tags/likes.html', takes_context=True)
def likes(context, obj):
request = context['request']
can_vote, vote_status = obj.can_vote(request)
context.update({
'content_obj': obj,
'can_vote': obj.can_vote(request),
'can_vote': can_vote,
'vote_status': vote_status,
'content_type': "-".join((obj._meta.app_label, obj._meta.module_name))
})
return context

0 comments on commit 2010453

Please sign in to comment.