netbox
netbox copied to clipboard
Devices count on site page does not include unracked devices
Issue type: Bug Report
Python version: Python 2.7.10 NetBox version: 1.9.0-r1
It appears that the devices count on site page does not include unracked devices, the following screencap lists 0 devices:

But then clicking on the devices count lists the unracked devices, as follows:

Seems to an issue with the way stats.device_count is calculated?
Thanks for any help you can provide.
Kind regards, Matt
Looks like I missed some ORM references while implementing #198. Easy fix.