[Django] #31889: Django actions

5 views
Skip to first unread message

Django

unread,
Aug 14, 2020, 4:04:07 PM8/14/20
to django-...@googlegroups.com
#31889: Django actions
-----------------------------------------+-------------------------
Reporter: neocruiser | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Keywords: actions
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-----------------------------------------+-------------------------
Hi,

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.

Django

unread,
Aug 14, 2020, 5:35:47 PM8/14/20
to django-...@googlegroups.com
#31889: Django actions
--------------------------------+-----------------------------------------
Reporter: Sleiman Bassim | Owner: anujpandey785
Type: Bug | Status: assigned
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:

Keywords: actions | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------+-----------------------------------------
Changes (by anujpandey785):

* owner: nobody => anujpandey785
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/31889#comment:1>

Django

unread,
Aug 14, 2020, 7:11:59 PM8/14/20
to django-...@googlegroups.com
#31889: Django actions
--------------------------------+-----------------------------------------
Reporter: Sleiman Bassim | Owner: anujpandey785
Type: Bug | Status: closed
Component: Documentation | Version: 3.1
Severity: Normal | Resolution: invalid

Keywords: actions | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------+-----------------------------------------
Changes (by sage):

* 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>

Reply all
Reply to author
Forward
0 new messages