The result is that applications with multiple authentications backends
that were previously using `force_login()` without specifying a backend
are broken when running on 1.10, and need to be updated to specify a
backend. This doesn't seem like it's in keeping with the intent of the
`force_login()` test client helper, but if it is it should at least be
documented as a (test code) breaking change.
--
Ticket URL: <https://code.djangoproject.com/ticket/27027>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Pull request addressing this here:
https://github.com/django/django/pull/7034
--
Ticket URL: <https://code.djangoproject.com/ticket/27027#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"fc8f097117af7ada616fad20ae5b417fcf740413" fc8f097]:
{{{
#!CommitTicketReference repository=""
revision="fc8f097117af7ada616fad20ae5b417fcf740413"
Fixed #27027 -- Restored Client.force_login() defaulting to the first auth
backend.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27027#comment:2>
Comment (by Tim Graham <timograham@…>):
In [changeset:"d68b145a6f6e5e5dc1775cdaa904d83ee28ed615" d68b145]:
{{{
#!CommitTicketReference repository=""
revision="d68b145a6f6e5e5dc1775cdaa904d83ee28ed615"
[1.10.x] Fixed #27027 -- Restored Client.force_login() defaulting to the
first auth backend.
Backport of fc8f097117af7ada616fad20ae5b417fcf740413 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27027#comment:3>