Dashboard widget device filtering #12530
-
Hello everyone, i kinda expected the filters for the Dashboard-Widgets to just work by copy-pasting the Code from saved filters. This is apparently not the case, e.g.
Produces the error "Invalid filter specification for devices. ", but it works fine as saved filter. What am i doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The filter field for the Object Count widget is a QuerySet filter. The Object List widget and Saved Filters are URL parameters. Saved Filters and Object List widget are compatible with each other, the Object Count widget is not. |
Beta Was this translation helpful? Give feedback.
-
Try this instead, it should be ORM filter query {"status": ["active"], "device_type__manufacturer_id": "3"} |
Beta Was this translation helpful? Give feedback.
Try this instead, it should be ORM filter query