https://docs.djangoproject.com/en/dev/topics/db/transactions/#sequences-of-custom-sql-queries

Not sure about this commit_unless_managed call. Also, I'm not seeing where we begin the transaction.