From bd13190499e8967a956b649761097ccb593141c1 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Fri, 14 Jul 2006 03:09:02 +0000 Subject: [PATCH] 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 --- django/contrib/auth/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):