Add child_count annotation for Aggregate bulk views #6746

Closed
opened 2025-12-29 19:44:55 +01:00 by adam · 2 comments
Owner

Originally created by @hagbarddenstore on GitHub (Jul 29, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.7

Feature type

Change to existing functionality

Proposed functionality

The child_count annotation is present in the AggregateListView but not on AggregateBulkEditView and AggregateBulkDeleteView.

This causes the Prefixes column to show instead of the expected count.

Use case

Same use case as for the Aggregate list view.

Database changes

None

External dependencies

None

Originally created by @hagbarddenstore on GitHub (Jul 29, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.7 ### Feature type Change to existing functionality ### Proposed functionality The `child_count` annotation is present in the `AggregateListView` but not on `AggregateBulkEditView` and `AggregateBulkDeleteView`. This causes the `Prefixes` column to show `–` instead of the expected count. ### Use case Same use case as for the Aggregate list view. ### Database changes None ### External dependencies None
adam added the type: bugstatus: accepted labels 2025-12-29 19:44:55 +01:00
adam closed this issue 2025-12-29 19:44:55 +01:00
Author
Owner

@hagbarddenstore commented on GitHub (Jul 29, 2022):

Another way to "solve" it is to simply remove the Prefixes column from the table on the bulk views (With .exclude('child_count').

@hagbarddenstore commented on GitHub (Jul 29, 2022): Another way to "solve" it is to simply remove the `Prefixes` column from the table on the bulk views (With `.exclude('child_count')`.
Author
Owner

@jeremystretch commented on GitHub (Aug 1, 2022):

This sort of thing should get a lot easier to maintain once #7845 has been implemented.

@jeremystretch commented on GitHub (Aug 1, 2022): This sort of thing should get a lot easier to maintain once #7845 has been implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6746