Skip to content

Commit

Permalink
Admin: remove default bulk delete
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Apr 15, 2024
1 parent f0a897e commit 2fc3025
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions iommi/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ def list(cls, table=None, **kwargs):
table if table is not None else {},
call_target__cls=cls.get_meta().table_class,
columns=dict(
select__include=True,
edit=dict(
call_target__attribute='edit',
after=0,
Expand All @@ -451,9 +450,6 @@ def list(cls, table=None, **kwargs):
),
),
query_from_indexes=True,
bulk__actions__delete__include=lambda request, table, **_: (
cls.has_permission(request, instance=None, model=table.model, operation='delete')
),
)

return cls(
Expand Down

0 comments on commit 2fc3025

Please sign in to comment.