[PR #8094] [CLOSED] Document that lookup expressions don't work on custom fields #13320

Closed
opened 2025-12-29 22:26:44 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8094
Author: @sol1james
Created: 12/17/2021
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

  • 8d937ed Documented that lookup expressions don't work on custom fields

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/rest-api/filtering.md (+1 -1)

📄 Description

I tried using a lookup expression on a custom field and it didn't work. Ie I used this URL:
https://netbox.xxxx.cloud/dcim/devices/?q=&cf_import_group__n=rumble_nov_2021
it returned all devices including those where import_group=rumble_nov_2021

I googled it and found this post which indicates that you can't do what I was trying to do:
https://groups.google.com/g/netbox-discuss/c/_6_zdVrKo8U

The documentation (https://netbox.readthedocs.io/en/stable/rest-api/filtering/) is a bit ambiguous about this so I want to clarify it.

Fixes: 8093


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/8094 **Author:** [@sol1james](https://github.com/sol1james) **Created:** 12/17/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`8d937ed`](https://github.com/netbox-community/netbox/commit/8d937ed29be93360943e2523149e02bc2a2d9c68) Documented that lookup expressions don't work on custom fields ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/rest-api/filtering.md` (+1 -1) </details> ### 📄 Description I tried using a lookup expression on a custom field and it didn't work. Ie I used this URL: https://netbox.xxxx.cloud/dcim/devices/?q=&cf_import_group__n=rumble_nov_2021 it returned all devices including those where import_group=rumble_nov_2021 I googled it and found this post which indicates that you can't do what I was trying to do: https://groups.google.com/g/netbox-discuss/c/_6_zdVrKo8U The documentation (https://netbox.readthedocs.io/en/stable/rest-api/filtering/) is a bit ambiguous about this so I want to clarify it. ### Fixes: 8093 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:26:44 +01:00
adam closed this issue 2025-12-29 22:26:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13320