summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-08-16 23:16:55 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-08-16 23:16:55 +0000
commit7d022cd48fd4e193108c1b4785d3bdc2fe0e22e8 (patch)
treea3c88f8ca1a1bc3a22054d4fd45e3e85b11bbeb2
parent659ab9846e81d95bb75dbb3c00147324bf0d6541 (diff)
Fixed small bug in parts.auth.formfields.AuthenticationForm
git-svn-id: http://code.djangoproject.com/svn/django/trunk@521 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/parts/auth/formfields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/parts/auth/formfields.py b/django/parts/auth/formfields.py
index 1ad77dbda5..7d0cea2f52 100644
--- a/django/parts/auth/formfields.py
+++ b/django/parts/auth/formfields.py
@@ -23,7 +23,7 @@ class AuthenticationForm(formfields.Manipulator):
self.user_cache = None
def hasCookiesEnabled(self, field_data, all_data):
- if self.request and not self.request.test_cookie_worked():
+ if self.request and not self.request.session.test_cookie_worked():
raise validators.ValidationError, "Your Web browser doesn't appear to have cookies enabled. Cookies are required for logging in."
def isValidUser(self, field_data, all_data):