ObjectListWidget and ObjectCountsWidget should only take valid ObjectTypes #7813

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

Originally created by @kkthxbye-code on GitHub (Mar 30, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v.3.5.0-beta1

Python version

3.10

Steps to Reproduce

  1. Create an ObjectList or ObjectCount widget
  2. Select Administration -> Log Entry
  3. Save

Expected Behavior

Shouldn't be able to pick non-netbox native objects (the example one is from django-admin i think). If picked an exception should not be thrown.

Observed Behavior

An exception is thrown for ObjectCountWidget. The widget renders an error for ObjectListWidget.

Originally created by @kkthxbye-code on GitHub (Mar 30, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v.3.5.0-beta1 ### Python version 3.10 ### Steps to Reproduce 1. Create an ObjectList or ObjectCount widget 2. Select Administration -> Log Entry 3. Save ### Expected Behavior Shouldn't be able to pick non-netbox native objects (the example one is from django-admin i think). If picked an exception should not be thrown. ### Observed Behavior An exception is thrown for ObjectCountWidget. The widget renders an error for ObjectListWidget.
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 20:28:35 +01:00
adam closed this issue 2025-12-29 20:28:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7813