/virtualization/virtual-machines/?role=server generates exception #1301

Closed
opened 2025-12-29 16:31:13 +01:00 by adam · 0 comments
Owner

Originally created by @candlerb on GitHub (Oct 13, 2017).

Issue type

[ ] Feature request
[X] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.1

Description

To reproduce:

  • have a Virtual Machine whose role is "Server"
  • browse to that VM's details page

image

  • click on the "Role: Server" link, which points to /virtualization/virtual-machines/?role=server
  • observe exception:
<class 'django.core.exceptions.FieldError'>

Unsupported lookup 'slug' for SlugField or join on the field not permitted.
Originally created by @candlerb on GitHub (Oct 13, 2017). ### Issue type [ ] Feature request <!-- Requesting the implementation of a new feature --> [X] Bug report <!-- Reporting unexpected or erroneous behavior --> [ ] Documentation <!-- Proposing a modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) --> ### Environment * Python version: 3.5.2 * NetBox version: 2.2.1 ### Description To reproduce: * have a Virtual Machine whose role is "Server" * browse to that VM's details page ![image](https://user-images.githubusercontent.com/44789/31538518-bc9e6152-affd-11e7-84ef-ccb15f7f0169.png) * click on the "Role: Server" link, which points to `/virtualization/virtual-machines/?role=server` * observe exception: ~~~ <class 'django.core.exceptions.FieldError'> Unsupported lookup 'slug' for SlugField or join on the field not permitted. ~~~
adam added the type: bug label 2025-12-29 16:31:13 +01:00
adam closed this issue 2025-12-29 16:31:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1301