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

Commits on Sep 16, 2022

  1. Use admin 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
    adamantike committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    791eb09 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    602ea3e View commit details
    Browse the repository at this point in the history