Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2325 -- fix the authentication framework to work with new-styl…

…e classes.

Patch from Joseph Kocherhans.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bd13190499e8967a956b649761097ccb593141c1 1 parent 50448de
Malcolm Tredinnick authored July 14, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/auth/__init__.py
2  django/contrib/auth/__init__.py
@@ -38,7 +38,7 @@ def authenticate(**credentials):
38 38
         if user is None:
39 39
             continue
40 40
         # Annotate the user object with the path of the backend.
41  
-        user.backend = str(backend.__class__)
  41
+        user.backend = "%s.%s" % (backend.__module__, backend.__class__.__name__)
42 42
         return user
43 43
 
44 44
 def login(request, user):

0 notes on commit bd13190

Please sign in to comment.
Something went wrong with that request. Please try again.