Replies: 1 comment
-
This is actually expected because site = Site.objects.get(name="site01")
mfg = Manufacturer.objects.get(name="Meraki")
devices = Device.objects.filter(site=site, device_type__manufacturer=mfg) It can be further simplified like this with fewer queries: devices = Device.objects.filter(site__name="site01", device_type__manufacturer__name="Meraki") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
Proposed Functionality
Would like to be able to filter on Manufacturer when looking for devices.
Instead of getting devices that are of manufacturer Meraki, I get an error:
Use Case
Be able to get devices of a certain manufacturer only. Opening as a feature request as unsure if it is expected today.
Database Changes
Unsure
External Dependencies
None
Beta Was this translation helpful? Give feedback.
All reactions