In the Admin actions documentation
[https://docs.djangoproject.com/en/3.1/ref/contrib/admin/actions/]
{{{make_published.short_description}}} should be
{{{self.short_description}}}
**Context**:
{{{
class ArticleAdmin(admin.ModelAdmin):
...
actions = ['make_published']
def make_published(self, request, queryset):
queryset.update(status='p')
make_published.short_description = "Mark selected stories as
published"
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31889>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => anujpandey785
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31889#comment:1>
* status: assigned => closed
* resolution: => invalid
Comment:
The docs are correct, we're setting `short_description` to the admin
action, not the `ModelAdmin` instance itself.
--
Ticket URL: <https://code.djangoproject.com/ticket/31889#comment:2>