mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #941: Corrected old references to rack.site on Device
This commit is contained in:
@@ -293,7 +293,7 @@ class Site(CreatedUpdatedModel, CustomFieldModel):
|
||||
|
||||
@property
|
||||
def count_devices(self):
|
||||
return Device.objects.filter(rack__site=self).count()
|
||||
return Device.objects.filter(site=self).count()
|
||||
|
||||
@property
|
||||
def count_circuits(self):
|
||||
|
Reference in New Issue
Block a user