def rollback(self, bundles):
        for bundle in bundles:
            if bundle.obj and self.get_bundle_detail_data(bundle):
                bundle.obj.delete()
Test for https://code.djangoproject.com/ticket/16818
dataset/ETHPy150Open mozilla/inventory/vendor-local/src/django-tastypie/tastypie/resources.py/ModelResource.rollback--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/transactions_regress/tests.py/TestManyToManyAddTransaction.test_manyrelated_add_commit