It looks robust and correctly builds on top of the transaction management
code.
See also #14051.
--
Ticket URL: <https://code.djangoproject.com/ticket/21803>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: charettes (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/21803#comment:1>
* cc: niels.busch@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/21803#comment:2>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/21803#comment:3>
Comment (by pelme):
I've made an initial PR (not yet complete), with a port of django-
transaction-hooks:
https://github.com/django/django/pull/4593
--
Ticket URL: <https://code.djangoproject.com/ticket/21803#comment:4>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/21803#comment:5>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/21803#comment:6>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/21803#comment:7>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/21803#comment:8>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/21803#comment:9>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"00a1d4d042a7afd139316982c9b57e87d26a894f" 00a1d4d0]:
{{{
#!CommitTicketReference repository=""
revision="00a1d4d042a7afd139316982c9b57e87d26a894f"
Fixed #21803 -- Added support for post-commit callbacks
Made it possible to register and run callbacks after a database
transaction is committed with the `transaction.on_commit()` function.
This patch is heavily based on Carl Meyers django-transaction-hooks
<https://django-transaction-hooks.readthedocs.org/>. Thanks to
Aymeric Augustin, Carl Meyer, and Tim Graham for review and feedback.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21803#comment:10>