summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-20 00:43:39 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-20 00:43:39 +0000
commit49fbe711ccfe302c00ce7b1e5d71848699482899 (patch)
tree9a8362655a7154c7b15039847b4ccc4e9547ad5a
parent897d24b220a9615f036ffed663926851a7ec5e64 (diff)
Added missing import to [230]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/models/auth.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/models/auth.py b/django/models/auth.py
index 6c4624013d..9acb40f44f 100644
--- a/django/models/auth.py
+++ b/django/models/auth.py
@@ -213,6 +213,7 @@ class Session(meta.Model):
raise SessionDoesNotExist
session_md5, tamper_check = session_cookie_string[:32], session_cookie_string[32:]
if md5.new(session_md5 + SECRET_KEY + 'auth').hexdigest() != tamper_check:
+ from django.core.exceptions import SuspiciousOperation
raise SuspiciousOperation, "User may have tampered with session cookie."
return get_object(session_md5__exact=session_md5, select_related=True)