summaryrefslogtreecommitdiff
path: root/django/models/auth.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-21 02:20:40 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-21 02:20:40 +0000
commit8d144dadd8b60a7ce803ebcb235718f06e2d5986 (patch)
treea3d3e47165b91b84a148cc65d2b8cabcdef361af /django/models/auth.py
parentd330be016927bacf5fcad337138741311ac7270e (diff)
Fixed #114 -- Changed uses of deprecated 'whrandom' module to 'random'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/models/auth.py')
-rw-r--r--django/models/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/models/auth.py b/django/models/auth.py
index ef0ffdf749..4d3f6394a1 100644
--- a/django/models/auth.py
+++ b/django/models/auth.py
@@ -172,7 +172,7 @@ class User(meta.Model):
"Generates a random password with the given length and given allowed_chars"
# Note that default value of allowed_chars does not have "I" or letters
# that look like it -- just to avoid confusion.
- from whrandom import choice
+ from random import choice
return ''.join([choice(allowed_chars) for i in range(length)])
class Session(meta.Model):