From 4bc1662357c39336f3edf55f3595fda06d6bcd69 Mon Sep 17 00:00:00 2001 From: shaunsephton Date: Tue, 6 Jul 2010 15:06:35 +0200 Subject: [PATCH] added vote status --- likes/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/likes/views.py b/likes/views.py index ac8eec3..8b69c1a 100644 --- a/likes/views.py +++ b/likes/views.py @@ -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