From aaaa8e862ba5a32af75386408d35e0a176c92542 Mon Sep 17 00:00:00 2001 From: etienne Date: Fri, 8 Aug 2008 13:27:33 +0000 Subject: Minor correction of documentation. --- polls/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/polls/views.py b/polls/views.py index 8bb8157..d3687f2 100644 --- a/polls/views.py +++ b/polls/views.py @@ -144,7 +144,9 @@ admin_url=admin_url, status = 'D', type=request.POST['poll_type']) def poll(request, poll_url): - "Display a poll" + """Display a poll + poll_url is given to identify the poll + """ def modifyVote(request, choices): "Modify user's votes" @@ -293,7 +295,7 @@ def poll(request, poll_url): voter.votes[idx] = vote choices_sum[idx] += vote.value # for undefined vote get the choice id - # on the template the distinction between the choice and the voter + # on the template the distinction between the choice and the vote # is made by the type of the "vote" for voter in voters: for vote in voter.votes: -- cgit v1.2.3