Skip to content

Server error in search #18316

Closed
Closed
@jiuka

Description

@jiuka

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.2.0

Python Version

3.10

Steps to Reproduce

  1. Add an IP to IPAM
  2. Seach for this IP

Example: https://demo.netbox.dev/search/?q=172.16.0.7

Expected Behavior

IP is found

Observed Behavior

Server error:

  File "/opt/netbox/current/netbox/extras/models/search.py", line 73, in display_attrs
    name = self.object._meta.get_field(attr).verbose_name
AttributeError: 'GenericRel' object has no attribute 'verbose_name'

Metadata

Metadata

Assignees

Labels

severity: highCompletely breaks certain functions, or substantially degrades performance application-widestatus: 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