Closed
Description
Deployment Type
NetBox Cloud
NetBox Version
v4.0.8
Python Version
3.10
Steps to Reproduce
- Create a device with five module bays
- Install a module into each bay
- View the device's module bays list
Expected Behavior
The installed modules should be prefetched automatically to optimize the number of database queries.
Observed Behavior
A separate query is issued for each installed module. This is because the base table's prefetch logic does not recognize reverse one-to-one relations.