mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Fix has_bulk_actions for ObjectChildrenView
This commit is contained in:
parent
1c558805a5
commit
faa0d859bb
@ -143,7 +143,7 @@ class ObjectChildrenView(ObjectView, ActionsMixin, TableMixin):
|
||||
|
||||
# Determine the available actions
|
||||
actions = self.get_permitted_actions(request.user, model=self.child_model)
|
||||
has_bulk_actions = any(a.bulk for a in actions)
|
||||
has_bulk_actions = any(action.bulk for action in actions.values())
|
||||
|
||||
table_data = self.prep_table_data(request, child_objects, instance)
|
||||
table = self.get_table(table_data, request, has_bulk_actions)
|
||||
|
Loading…
Reference in New Issue
Block a user