ModelAdmin functions that use transaction.atomic:
https://github.com/django/django/blob/master/django/contrib/admin/options.py#L1393
https://github.com/django/django/blob/master/django/contrib/admin/options.py#L1660
"using" argument (taken from db routers) should be specified for
transaction.atomic
Patch: https://github.com/django/django/pull/6076
--
Ticket URL: <https://code.djangoproject.com/ticket/26170>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: => 0
* needs_better_patch: => 0
* needs_tests: => 1
* stage: Unreviewed => Accepted
Comment:
Patch needs tests. Looks like this also affects
`django/contrib/auth/admin.py`.
--
Ticket URL: <https://code.djangoproject.com/ticket/26170#comment:1>
* needs_better_patch: 0 => 1
* version: 1.9 => master
* needs_tests: 1 => 0
Comment:
The new [https://github.com/django/django/pull/7143 PR] includes tests but
doesn't deal with the `django/contrib/auth/admin.py` instance yet.
--
Ticket URL: <https://code.djangoproject.com/ticket/26170#comment:2>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26170#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"9459ec82aa12cad9b859c54c2f33f50bec057f2e" 9459ec8]:
{{{
#!CommitTicketReference repository=""
revision="9459ec82aa12cad9b859c54c2f33f50bec057f2e"
Fixed #26170 -- Made ModelAdmin views run transactions on the correct
database.
Thanks juntatalor for the initial patch.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26170#comment:4>