title: How can I check what objects will be cascade deleted in Django?
body: <p>In the /admin/ section of Django you can choose to delete items.</p>
  
  <p>If any related objects would be deleted along with your chosen object you get to see a list of affected objects before you confirm delete.</p>
  
  <p>Can I check this in my own function programmatically?</p>
  
  <p>I'd like to do something like</p>
  
  <pre><code>for item in Item.objects.all():
      if not deletion_would_also_delete_other_objects(item):
          item.delete()
  </code></pre>