1 A better alternative to the native transaction signals of Django.
3 Sometimes you need to fire off an action related to the current database
4 transaction, but only if the transaction successfully commits. Examples:
5 a Celery task, an email notification, or a cache invalidation.
7 Doing this correctly while accounting for savepoints that might be
8 individually rolled back, closed/dropped connections, and idiosyncrasies of
9 various databases, is non-trivial. Transaction signals just make it easier
12 django-transaction-hooks does the heavy lifting so you don't have to.
14 WWW: https://github.com/carljm/django-transaction-hooks