FieldError at /dcim/power-feeds/ | Cannot resolve keyword 'connection' into field. #7533

Closed
opened 2025-12-29 20:24:50 +01:00 by adam · 0 comments
Owner

Originally created by @julianstolp on GitHub (Jan 19, 2023).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.4.2

Python version

3.10

Steps to Reproduce

  1. Go to Power -> Power Feeds
  2. Open Configure Table
  3. Add Field Connection
  4. Click Connection to sort the table by this field
  5. Refresh the website

It doesn't matter if the table contains any power feeds.

Expected Behavior

Sort by field Connection

Observed Behavior

FieldError at /dcim/power-feeds/

Cannot resolve keyword 'connection' into field. Choices are: _path, _path_id, amperage, available_power, cable, cable_end, cable_id, cable_terminations, comments, created, custom_field_data, description, id, journal_entries, last_updated, mark_connected, max_utilization, name, phase, power_panel, power_panel_id, rack, rack_id, status, supply, tagged_items, tags, type, voltage

Request Method: GET
Request URL: https://server.ip/dcim/power-feeds/
Django Version: 4.1.5
Exception Type: FieldError
Exception Value:

Cannot resolve keyword 'connection' into field. Choices are: _path, _path_id, amperage, available_power, cable, cable_end, cable_id, cable_terminations, comments, created, custom_field_data, description, id, journal_entries, last_updated, mark_connected, max_utilization, name, phase, power_panel, power_panel_id, rack, rack_id, status, supply, tagged_items, tags, type, voltage

Exception Location: /opt/netbox/venv/lib/python3.10/site-packages/django/db/models/sql/query.py, line 1709, in names_to_path
Raised during: dcim.views.PowerFeedListView
Python Executable: /opt/netbox/venv/bin/python3
Python Version: 3.10.6
Python Path:

['/opt/netbox/netbox',
'/opt/netbox',
'/opt/netbox/venv/bin',
'/usr/lib/python310.zip',
'/usr/lib/python3.10',
'/usr/lib/python3.10/lib-dynload',
'/opt/netbox/venv/lib/python3.10/site-packages']

Server time: Thu, 19 Jan 2023 13:34:52 +0000

Originally created by @julianstolp on GitHub (Jan 19, 2023). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.4.2 ### Python version 3.10 ### Steps to Reproduce 1. Go to Power -> Power Feeds 2. Open Configure Table 3. Add Field `Connection` 4. Click Connection to sort the table by this field 5. Refresh the website It doesn't matter if the table contains any power feeds. ### Expected Behavior Sort by field Connection ### Observed Behavior FieldError at /dcim/power-feeds/ Cannot resolve keyword 'connection' into field. Choices are: _path, _path_id, amperage, available_power, cable, cable_end, cable_id, cable_terminations, comments, created, custom_field_data, description, id, journal_entries, last_updated, mark_connected, max_utilization, name, phase, power_panel, power_panel_id, rack, rack_id, status, supply, tagged_items, tags, type, voltage Request Method: GET Request URL: https://server.ip/dcim/power-feeds/ Django Version: 4.1.5 Exception Type: FieldError Exception Value: Cannot resolve keyword 'connection' into field. Choices are: _path, _path_id, amperage, available_power, cable, cable_end, cable_id, cable_terminations, comments, created, custom_field_data, description, id, journal_entries, last_updated, mark_connected, max_utilization, name, phase, power_panel, power_panel_id, rack, rack_id, status, supply, tagged_items, tags, type, voltage Exception Location: /opt/netbox/venv/lib/python3.10/site-packages/django/db/models/sql/query.py, line 1709, in names_to_path Raised during: dcim.views.PowerFeedListView Python Executable: /opt/netbox/venv/bin/python3 Python Version: 3.10.6 Python Path: ['/opt/netbox/netbox', '/opt/netbox', '/opt/netbox/venv/bin', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/opt/netbox/venv/lib/python3.10/site-packages'] Server time: Thu, 19 Jan 2023 13:34:52 +0000
adam added the type: bugstatus: accepted labels 2025-12-29 20:24:50 +01:00
adam closed this issue 2025-12-29 20:24:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7533