Closed adamantike closed 1 year ago
Django 3.2 introduced the @admin.action decorator [1], which simplifies adding permissions and description to admin actions.
@admin.action
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.
3.0.0
[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