When I delete a PumpLog I delete the related Invoice via on_delete = models.CASCADE. Invoices have a post_delete signal that queries on that relationship (see the line with