Fix has_bulk_actions for ObjectChildrenView

This commit is contained in:
Jeremy Stretch 2025-06-27 13:36:50 -04:00
parent 1c558805a5
commit faa0d859bb

View File

@ -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)