Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import page raises exception when corresponding model has custom field with Type object or multiple objects #17421

Closed
mwobst opened this issue Sep 9, 2024 · 1 comment
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@mwobst
Copy link

mwobst commented Sep 9, 2024

Deployment Type

Self-hosted

NetBox Version

v4.1.0

Python Version

3.10

Steps to Reproduce

This happens at any model having at least one custom field with Type = "Object" or "Multiple objects". As soon as you open the model’s import page, we get the Exception Field.__init__() got an unexpected keyword argument 'query_params'.

Example:

  1. Open […]/extras/custom-fields/add/
  2. Let’s use "VPN > Tunnel" as object type, "whatever" as name, "Object" as type and then "Circuits > Circuit" as Related object type (yeah, makes no sense but eh), then save.
  3. Open […]/vpn/tunnels/import/

Expected Behavior

The import form is properly rendered = displayed.

Observed Behavior

Upon the last step, the mentioned exception is raised.
(Note: Removing the custom field also "removes" the exception.)

OS: Ubuntu 22.04 LTS
Django version: 5.0.9

At our NetBox v4.0.11 instance, Django 5.0.9 is used as well but no such error occurs.

@mwobst mwobst added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Sep 9, 2024
@arthanson
Copy link
Collaborator

dupe of #17354

@jeremystretch jeremystretch removed the status: needs triage This issue is awaiting triage by a maintainer label Sep 9, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants