I am writing tests for a Django application.
Currently, to test for the cascade deletion, I create instances, delete the parent and assert the child is deleted as well.
Is there a better method to do this, for example retrieve the parameters passed to the ForeignKey of the model using _meta.get_field ?