Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aConar opened this issue Feb 11, 2022 · 1 comment

Comments

@aConar
Copy link

aConar commented Feb 11, 2022

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
Copy link

Hi.

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

Kind regards,

Vusal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants