Filter RackType by Manufacturer on the Rack EditForm #11851

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

Originally created by @pheus on GitHub (Nov 19, 2025).

Originally assigned to: @pheus on GitHub.

NetBox version

v4.4.6

Feature type

Change to existing functionality

Proposed functionality

When creating or editing a Rack, allow filtering the Rack type (RackType) choices by Manufacturer, aligning with the device/module workflow.

Two possible approaches (either would work):

  1. Manufacturer field + query params
    Add a Manufacturer ModelChoiceField to the Rack form and use its query_params to constrain the Rack type field to types from the selected manufacturer.

  2. Selector modal on Rack type
    Add/enable the Selector modal button for the Rack type field. The modal should expose a Manufacturer filter so the user can pick a vendor first, then select a Rack type from the filtered list.

Use case

Environments often deploy multiple rack models from different manufacturers. Filtering rack types by manufacturer shortens long mixed lists, speeds data entry, prevents vendor mix-ups, and keeps the UX consistent with devices and modules.

Database changes

None.

External dependencies

None.

Originally created by @pheus on GitHub (Nov 19, 2025). Originally assigned to: @pheus on GitHub. ### NetBox version v4.4.6 ### Feature type Change to existing functionality ### Proposed functionality When creating or editing a Rack, allow filtering the **Rack type** (`RackType`) choices by **Manufacturer**, aligning with the device/module workflow. Two possible approaches (either would work): 1) **Manufacturer field + query params** Add a `Manufacturer` ModelChoiceField to the Rack form and use its `query_params` to constrain the `Rack type` field to types from the selected manufacturer. 2) **Selector modal on Rack type** Add/enable the **Selector** modal button for the `Rack type` field. The modal should expose a `Manufacturer` filter so the user can pick a vendor first, then select a Rack type from the filtered list. ### Use case Environments often deploy multiple rack models from different manufacturers. Filtering rack types by manufacturer shortens long mixed lists, speeds data entry, prevents vendor mix-ups, and keeps the UX consistent with devices and modules. ### Database changes None. ### External dependencies None.
adam added the status: acceptedtype: featurenetboxcomplexity: low labels 2025-12-29 21:50:42 +01:00
adam closed this issue 2025-12-29 21:50:43 +01:00
Author
Owner

@pheus commented on GitHub (Nov 19, 2025):

Thanks for considering this request.
I’m happy to open a PR if it’s accepted. Please let me know if you prefer (1) adding a Manufacturer filter using query_params, or (2) enabling the selector modal on the RackType field.

@pheus commented on GitHub (Nov 19, 2025): Thanks for considering this request. I’m happy to open a PR if it’s accepted. Please let me know if you prefer (1) adding a Manufacturer filter using `query_params`, or (2) enabling the selector modal on the `RackType` field.
Author
Owner

@jeremystretch commented on GitHub (Nov 20, 2025):

Let's add the selector widget to the rack type field. Thanks @pheus!

@jeremystretch commented on GitHub (Nov 20, 2025): Let's add the selector widget to the rack type field. Thanks @pheus!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11851