Skip to content

Filtering rack reservations by username raises ValueError #5498

@jeremystretch

Description

@jeremystretch

Environment

  • Python version: 3.6.9
  • NetBox version: 2.10.1

Steps to Reproduce

  1. Create one or more rack reservations
  2. Attempt to filter the reservations by username, e.g. GET /api/dcim/rack-reservations/?user=jstretch

Expected Behavior

NetBox should return only the reservations assigned to the specified user.

Observed Behavior

A ValueError exception is raised because the user filter is incorrectly defined on RackFilterSet.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions