def delete(self, *args, **kwargs):
        if self.newsletter.active == False:
            self.newsletter.delete()
        super(Job, self).delete(*args, **kwargs)
If the job refers to a inactive Newsletter delete it.
dataset/ETHPy150Open allink/pennyblack/pennyblack/models/job.py/Job.delete