ValueError when viewing a device with at least one power port and power outlet #2565

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

Originally created by @jeremystretch on GitHub (Apr 30, 2019).

Environment

  • Python version: 3.5.2
  • NetBox version: v2.6-beta1

Steps to Reproduce

  1. Create a device and add at least one power port and one power outlet
  2. Connect the power port to a power feed
  3. View the device

Expected Behavior

The device view should include a power utilization panel

Observed Behavior

A ValueError exception is raised:

ValueError at /dcim/devices/<pk>/

The annotation 'maximum_draw' conflicts with a field on the model.

Weirdly, this I cannot replicate this using the development server, only when running under gunicorn. But we should rename the aggregate fields on the queryset anyway to avoid the conflict.

Originally created by @jeremystretch on GitHub (Apr 30, 2019). ### Environment * Python version: 3.5.2 * NetBox version: v2.6-beta1 ### Steps to Reproduce 1. Create a device and add at least one power port and one power outlet 2. Connect the power port to a power feed 3. View the device ### Expected Behavior The device view should include a power utilization panel ### Observed Behavior A ValueError exception is raised: ``` ValueError at /dcim/devices/<pk>/ The annotation 'maximum_draw' conflicts with a field on the model. ``` Weirdly, this I cannot replicate this using the development server, only when running under gunicorn. But we should rename the aggregate fields on the queryset anyway to avoid the conflict.
adam added the type: bugstatus: accepted labels 2025-12-29 18:20:00 +01:00
adam closed this issue 2025-12-29 18:20:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2565