#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. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/053.2cd0cee69c59abe831ee8e55e3e32efc%40djangoproject.com.