summaryrefslogtreecommitdiff
path: root/polls
diff options
context:
space:
mode:
authoretienne2008-08-08 13:27:33 +0000
committeretienne2008-08-08 13:27:33 +0000
commitaaaa8e862ba5a32af75386408d35e0a176c92542 (patch)
treec91044b0c5af199d8e8695ce3a18f7a28a12257b /polls
parent2b384dd33ecd0a17823e60cded5d3b111ea8133e (diff)
Minor correction of documentation.
Diffstat (limited to 'polls')
-rw-r--r--polls/views.py6
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: