Author: mtredinnick
Date: 2006-07-13 22:09:02 -0500 (Thu, 13 Jul 2006)
New Revision: 3346

Modified:
   django/trunk/django/contrib/auth/__init__.py
Log:
Fixed #2325 -- fix the authentication framework to work with new-style classes.
Patch from Joseph Kocherhans.


Modified: django/trunk/django/contrib/auth/__init__.py
===================================================================
--- django/trunk/django/contrib/auth/__init__.py        2006-07-14 02:57:10 UTC 
(rev 3345)
+++ django/trunk/django/contrib/auth/__init__.py        2006-07-14 03:09:02 UTC 
(rev 3346)
@@ -38,7 +38,7 @@
         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):


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to