summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2007-09-30 04:11:29 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2007-09-30 04:11:29 +0000
commitd95c0fd0177998f69156cc218a18301110adcb61 (patch)
treefb05b75fecaf163390212d8bc4df6047d0c368dc
parent964f0c16ad3c62bcae755b9b6b025bb1b69e1231 (diff)
Fixed #5636 -- Added missing Set import for Python2.3 support. Thanks, wangchun@exoweb.net.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/auth/backends.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/django/contrib/auth/backends.py b/django/contrib/auth/backends.py
index be6cfede11..f79929e2d2 100644
--- a/django/contrib/auth/backends.py
+++ b/django/contrib/auth/backends.py
@@ -1,6 +1,11 @@
from django.db import connection
from django.contrib.auth.models import User
+try:
+ set
+except NameError:
+ from sets import Set as set # Python 2.3 fallback
+
class ModelBackend:
"""
Authenticate against django.contrib.auth.models.User