API filtering with 'status__n' on Object (prefix, device, ..) NOT Working #10346

Closed
opened 2025-12-29 21:30:20 +01:00 by adam · 2 comments
Owner

Originally created by @Etibru on GitHub (Oct 10, 2024).

Deployment Type

Self-hosted

Triage priority

It's an important regretion

NetBox Version

v4.1.2

Python Version

3.12

Steps to Reproduce

  1. Call the API on :

The problem seems to be on all API status__n object filters, maybe even others.

Expected Behavior

This should return the list filtered by status

Observed Behavior

{
    "status__n": [
        "Select a valid choice. container is not one of the available choices."
    ]
}
{
  "status__n": [
    "Select a valid choice. planned is not one of the available choices."
  ]
}

Originally created by @Etibru on GitHub (Oct 10, 2024). ### Deployment Type Self-hosted ### Triage priority **It's an important regretion** ### NetBox Version v4.1.2 ### Python Version 3.12 ### Steps to Reproduce 1. Call the API on : - http://X.X.X.X/api/ipam/prefixes/?status__n=container - http://X.X.X.X/api/dcim/devices/?status__n=planned The problem seems to be on all API `status__n` object filters, maybe even others. ### Expected Behavior This should return the list filtered by status ### Observed Behavior ``` { "status__n": [ "Select a valid choice. container is not one of the available choices." ] } { "status__n": [ "Select a valid choice. planned is not one of the available choices." ] } ```
adam added the type: bugstatus: duplicate labels 2025-12-29 21:30:20 +01:00
adam closed this issue 2025-12-29 21:30:20 +01:00
Author
Owner

@sleepinggenius2 commented on GitHub (Oct 10, 2024):

This was already fixed in #17670, which should be included in the 4.1.4 release.

@sleepinggenius2 commented on GitHub (Oct 10, 2024): This was already fixed in #17670, which should be included in the 4.1.4 release.
Author
Owner

@jeremystretch commented on GitHub (Oct 10, 2024):

Going to close this as likely a duplicate of #17663. It can be re-opened if it's determined that the issue was not fixed in v4.1.4.

@jeremystretch commented on GitHub (Oct 10, 2024): Going to close this as likely a duplicate of #17663. It can be re-opened if it's determined that the issue was not fixed in v4.1.4.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10346