django/django — pull request #412 by mhaligowski (2012-09-30 16:28:56+00:00)
Title: fix #18998

When the backend name is stored in a session, it is first checked whether it is still in the settings. If not, the anonymous user is returned.

Written along with the unit test.