Ticket #2325: 2325.diff

File 2325.diff, 522 bytes (added by jkocherhans, 18 years ago)

patch to support new-style classes

  • django/contrib/auth/__init__.py

     
    3838        if user is None:
    3939            continue
    4040        # 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__)
    4242        return user
    4343
    4444def login(request, user):
Back to Top