ambitioninc/django-entity-history — pull request #7 by wesleykendall (2014-10-14 20:21:55+00:00)
Title: fixed errors related to cascading deletions

@Wilduck this changes the postgres trigger to an initially deferred trigger. This will make it execute after a transaction is complete. I also updated the logic to check that entities exist before inserting an entity relationship deactivation event. This happens in the case of cascading deletions. I wrote a failing test that was fixed with this patch