diff options
author | etienne <etienne@07715635-78ed-41b0-aaf1-0afda6c37f35> | 2008-08-08 13:27:33 +0000 |
---|---|---|
committer | etienne <etienne@07715635-78ed-41b0-aaf1-0afda6c37f35> | 2008-08-08 13:27:33 +0000 |
commit | aaaa8e862ba5a32af75386408d35e0a176c92542 (patch) | |
tree | c91044b0c5af199d8e8695ce3a18f7a28a12257b | |
parent | 2b384dd33ecd0a17823e60cded5d3b111ea8133e (diff) | |
download | Papillon-aaaa8e862ba5a32af75386408d35e0a176c92542.tar.bz2 Papillon-aaaa8e862ba5a32af75386408d35e0a176c92542.zip |
Minor correction of documentation.
-rw-r--r-- | polls/views.py | 6 |
1 files 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: |