Opened 11 years ago

Closed 9 years ago

#21803 closed New feature (fixed)

Support post-commit hooks

Reported by: Aymeric Augustin Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Simon Charette, niels.busch@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

We should merge https://github.com/carljm/django-transaction-hooks once it has stabilized.

It looks robust and correctly builds on top of the transaction management code.

See also #14051.

Change History (10)

comment:1 by Simon Charette, 11 years ago

Cc: Simon Charette added

comment:2 by Niels Sandholt Busch, 11 years ago

Cc: niels.busch@… added

comment:3 by Tim Graham, 11 years ago

Triage Stage: UnreviewedAccepted

comment:4 by Andreas Pelme, 10 years ago

I've made an initial PR (not yet complete), with a port of django-transaction-hooks:

https://github.com/django/django/pull/4593

comment:5 by Carl Meyer, 10 years ago

Has patch: set
Patch needs improvement: set

comment:6 by Tim Graham, 10 years ago

Patch needs improvement: unset

comment:7 by Tim Graham, 10 years ago

Patch needs improvement: set

comment:8 by Tim Graham, 9 years ago

Patch needs improvement: unset

comment:9 by Tim Graham, 9 years ago

Triage Stage: AcceptedReady for checkin

comment:10 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In 00a1d4d0:

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.

Note: See TracTickets for help on using tickets.
Back to Top