Using Django 1.6 transaction management to protect atomic regions of code