@property
    def deletable(self):
        return not self.environments.exists()


    # @@@ this protection should apply to queryset.delete as well
Return True if this element can be deleted, otherwise False.
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/environments/models.py/Element.deletable