fix the tests on django 1.6

Any exception inside an ORM method (like those cause by our pre-delete signal) invalidates the transaction. You need to use an atomic() to prevent this.