diff options
Diffstat (limited to 'django/models')
| -rw-r--r-- | django/models/auth.py | 2 |
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): |
