Unable to assign device to rack in location #4733

Closed
opened 2025-12-29 19:19:59 +01:00 by adam · 1 comment
Owner

Originally created by @rodvand on GitHub (Apr 7, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11-beta1

Python version

3.8

Steps to Reproduce

  1. Create "Site A"
  2. Create "Location A" with "Site A" as Site
  3. Create a Rack "Rack A"
  4. Create a new Device "Device 0" and assign it to Site -> Site A, Location -> Location A, Rack -> Rack A

Expected Behavior

Dropdown showing Rack A as available option.

Observed Behavior

"The results could not be loaded" in the dropdown. The web inspector shows the query being used is https://beta.netbox.dev/api/dcim/racks/?q=&limit=50&offset=0&brief=true&site_id=25&location_id=location and I guess the location should include the ID instead of the word "location".

Originally created by @rodvand on GitHub (Apr 7, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11-beta1 ### Python version 3.8 ### Steps to Reproduce 1. Create "Site A" 2. Create "Location A" with "Site A" as Site 3. Create a Rack "Rack A" 4. Create a new Device "Device 0" and assign it to Site -> Site A, Location -> Location A, Rack -> Rack A ### Expected Behavior Dropdown showing Rack A as available option. ### Observed Behavior "The results could not be loaded" in the dropdown. The web inspector shows the query being used is https://beta.netbox.dev/api/dcim/racks/?q=&limit=50&offset=0&brief=true&site_id=25&location_id=location and I guess the location should include the ID instead of the word "location".
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 19:19:59 +01:00
adam closed this issue 2025-12-29 19:19:59 +01:00
Author
Owner

@rodvand commented on GitHub (Apr 7, 2021):

Looks like a missing $ on 81193eb550/netbox/dcim/forms.py (L2059)

@rodvand commented on GitHub (Apr 7, 2021): Looks like a missing $ on https://github.com/netbox-community/netbox/blob/81193eb55054763ede647b0eb27cf61632b5ba3d/netbox/dcim/forms.py#L2059
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4733