def test_to_field(self):
        apple = Food.objects.create(name="apple")
        eaten = Eaten.objects.create(food=apple, meal="lunch")

        apple.delete()
        self.assertFalse(Food.objects.exists())
        self.assertFalse(Eaten.objects.exists())
Initializes the payload dictionary using resource specific data
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/delete_regress/tests.py/DeleteCascadeTransactionTests.test_to_field--crossover with--dataset/ETHPy150Open dropbox/pynsot/pynsot/models.py/Resource.init_payload