mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #26919 -- Added the action form's media in the changelist view.
This commit is contained in:
committed by
Tim Graham
parent
b785927b44
commit
b387189d86
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user