Skip to content

jmhansen/django-post-commit-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PostCommitHookMixin

Creates a hook for Django models to signal that a transaction has been committed to the database. This is more reliable than the builtin save method or Django's post_save signals, which are called before commit within atomic transactions.

Required dependencies:

To use:

  • Add the mixin to the model
  • Add the following 'field' to the model: tracker = FieldTracker()
  • Implement the post_commit_hook method.

About

A Django utility to signal when a transaction is committed to the database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages