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

Use admin action decorator #467

Merged
merged 2 commits into from
Sep 16, 2022

Conversation

adamantike
Copy link
Contributor

Django 3.2 introduced the @admin.action decorator [1], which simplifies adding permissions and description to admin actions.

As the project requires Django 3.2 at least, since version 3.0.0, this solution does not require an alternative approach for older Django versions.

[1] https://docs.djangoproject.com/en/3.2/ref/contrib/admin/actions/#the-action-decorator

Django 3.2 introduced the `@admin.action` decorator [1], which
simplifies adding permissions and description to admin actions.

As the project requires Django 3.2 at least, since version `3.0.0`,
this solution does not require an alternative approach for older Django
versions.

[1] https://docs.djangoproject.com/en/3.2/ref/contrib/admin/actions/#the-action-decorator
@clintonb clintonb merged commit b035ac6 into jazzband:master Sep 16, 2022
@adamantike adamantike deleted the misc/use-admin-action-decorator branch September 17, 2022 17:39
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

Successfully merging this pull request may close these issues.

2 participants