Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/auth/__init__.py
View
2  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):
Please sign in to comment.
Something went wrong with that request. Please try again.