def get_systems(self):
        if not self.systems:
            from systems.models import System
            self.systems = System.objects.all()
        return self.systems.filter(system_rack__in=self.systemrack_set.all())
Get all systems associated to racks in this site
dataset/ETHPy150Open mozilla/inventory/core/site/models.py/Site.get_systems