Skip to content

Commit

Permalink
Removed the has_voted variable as it was not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Oordt committed Oct 13, 2010
1 parent 116bfbb commit 2c0f276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pollit/views.py
Expand Up @@ -56,7 +56,7 @@ def detail(request, year, month, day, slug, template_name="pollit/detail.html"):


# If user is logged in and has not voted
if 'choice' in request.POST and request.user.is_authenticated() and not has_voted:
if 'choice' in request.POST and request.user.is_authenticated():
try:
if not poll_choice:
poll.vote(request.POST['choice'], request.user)
Expand Down

0 comments on commit 2c0f276

Please sign in to comment.