Search for empty custom field not working #67

Closed
opened 2026-04-05 16:21:27 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Kloppi313 on 3/27/2026

NetBox Edition

NetBox Community

NetBox Version

v.4.5.5

Python Version

3.12

Steps to Reproduce

Create Custom Field:
Object Type: Tenancy>Contact
Name: Secondary_Groups
Label: Secondary Groups
Type: Multiple objects
Required: false

Expected Behavior

Search for Contacts with empty field Secondary Groups gives results (if any)

Observed Behavior

go to Organization -> Contacts -> Filters -> Secondary Groups -> is empty -> do not select a Group

https://TLD/tenancy/contacts/?cf_Secondary_Groups__empty=true

<class 'ValueError'>

Field 'id' expected a number but got 'true'.

Python version: 3.12.3
NetBox version: 4.5.5-Docker-4.0.2
Plugins: None installed

*Originally created by @Kloppi313 on 3/27/2026* ### NetBox Edition NetBox Community ### NetBox Version v.4.5.5 ### Python Version 3.12 ### Steps to Reproduce Create Custom Field: Object Type: Tenancy>Contact Name: Secondary_Groups Label: Secondary Groups Type: Multiple objects Required: false ### Expected Behavior Search for Contacts with empty field Secondary Groups gives results (if any) ### Observed Behavior go to Organization -> Contacts -> Filters -> Secondary Groups -> is empty -> do not select a Group https://TLD/tenancy/contacts/?cf_Secondary_Groups__empty=true <class 'ValueError'> Field 'id' expected a number but got 'true'. Python version: 3.12.3 NetBox version: 4.5.5-Docker-4.0.2 Plugins: None installed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#67