def delete(self, *args, **kwargs):
        permission_name = self.permission_name
        super(Queue, self).delete(*args, **kwargs)

        # once the Queue is safely deleted, remove the permission (if exists)
        if permission_name:
            try:
                p = Permission.objects.get(codename=permission_name[9:])
                p.delete()
            except __HOLE__:
                pass
dataset/ETHPy150Open rossp/django-helpdesk/helpdesk/models.py/Queue.delete