tomchristie/django-rest-framework — pull request #1204 by jespino (2013-10-25 05:46:09+00:00)
Title: Adding transaction rollback to exception_handler

This PR is to show you the idea, there are other ways to implement it (like, for example, another exception class named RollbackAPIException), anyway I find the interference of APIException capture with the rollback of django transaction middleware on exceptions, a little bit dangerous.

If you find it useful, I can implement with the RollbackAPIException, which is more backward compatible.