Use django-transaction-hooks if installed