burke-software / django-mass-edit

Make bulk changes in the Django admin interface
152 stars 67 forks source link

Using the provided mixin for enabling specific models, don't work if are custom actions declared. #104

Open aConar opened 2 years ago

aConar commented 2 years ago

Hi, I realize that if you disable MassEdit globally using:

MASSEDIT = {
    'ADD_ACTION_GLOBALLY': False,
}

And enable MassEdit on specific models using the provided mixin, it doesn't works when you have declared custom actions for the same model. For example, I have a simple custom action for csv export declared:

actions = ['export_csv']

And for the same model I added MassEdit using the mixin and it wont work. I have to comment 'actions' for get MassEdit working. Kind regards,

Alej

vusallyv commented 8 months ago

Hi.

You can use it like this: actions = MassEditMixin.actions + ('export_csv', )

Kind regards,

Vusal