Skip to content

Commit

Permalink
added vote status
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunsephton committed Jul 6, 2010
1 parent 6c004c4 commit 4bc1662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion likes/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from secretballot import views

def can_vote(request, content_type, object_id, vote):
return content_type.model_class().objects.get(id=object_id).can_vote(request)
return content_type.model_class().objects.get(id=object_id).can_vote(request)[0]

def like(request, content_type, id, vote):
url_friendly_content_type = content_type
Expand Down

0 comments on commit 4bc1662

Please sign in to comment.