mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
Fixed #26919 -- Added the action form's media in the changelist view.
This commit is contained in:
parent
b785927b44
commit
b387189d86
4 changed files with 21 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ from django.utils.html import format_html
|
|||
from django.utils.safestring import mark_safe
|
||||
from django.utils.six import StringIO
|
||||
|
||||
from .forms import MediaActionForm
|
||||
from .models import (
|
||||
Actor, AdminOrderedAdminMethod, AdminOrderedCallable, AdminOrderedField,
|
||||
AdminOrderedModelMethod, Album, Answer, Article, BarAccount, Book,
|
||||
|
|
@ -235,6 +236,7 @@ class PersonaAdmin(admin.ModelAdmin):
|
|||
|
||||
class SubscriberAdmin(admin.ModelAdmin):
|
||||
actions = ['mail_admin']
|
||||
action_form = MediaActionForm
|
||||
|
||||
def mail_admin(self, request, selected):
|
||||
EmailMessage(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue