summaryrefslogtreecommitdiff
path: root/polls
diff options
context:
space:
mode:
authoretienne2008-08-05 22:45:28 +0000
committeretienne2008-08-05 22:45:28 +0000
commitb2019ae7c6c13601b0f63d6324484010dc0216c7 (patch)
tree835966a5d81ee15c85cd4090360fb5c694a150b6 /polls
parentb10461003a785b6579e82fae380161396d94b68e (diff)
Changing confusing variable names
Diffstat (limited to 'polls')
-rw-r--r--polls/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/polls/views.py b/polls/views.py
index f63d31f..deee26c 100644
--- a/polls/views.py
+++ b/polls/views.py
@@ -4,7 +4,7 @@
# This program can be distributed under the terms of the GNU GPL.
# See the file COPYING.
-from random import choice
+from random import choice as random_choice
import string
import time
@@ -31,7 +31,7 @@ def createOrEdit(request, admin_url):
chars = string.letters + string.digits
url = ''
for i in range(6):
- url += choice(chars)
+ url += random_choice(chars)
url += str(int(time.time()))
return url