diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-07-14 03:09:02 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-07-14 03:09:02 +0000 |
| commit | bd13190499e8967a956b649761097ccb593141c1 (patch) | |
| tree | 47c3d300cb9db2be6a33a070b3803c1a688a1c12 | |
| parent | 50448de634e49051ccb1c4c79a648814ebe4241a (diff) | |
Fixed #2325 -- fix the authentication framework to work with new-style classes.
Patch from Joseph Kocherhans.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/auth/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/__init__.py b/django/contrib/auth/__init__.py index 2150893022..1c821801ef 100644 --- a/django/contrib/auth/__init__.py +++ b/django/contrib/auth/__init__.py @@ -38,7 +38,7 @@ def authenticate(**credentials): if user is None: continue # Annotate the user object with the path of the backend. - user.backend = str(backend.__class__) + user.backend = "%s.%s" % (backend.__module__, backend.__class__.__name__) return user def login(request, user): |
