MCPcopy
hub / github.com/django/django / mail_admin

Method mail_admin

tests/admin_views/admin.py:421–427  ·  view source on GitHub ↗
(self, request, selected)

Source from the content-addressed store, hash-verified

419
420 @admin.action
421 def mail_admin(self, request, selected):
422 EmailMessage(
423 "Greetings from a ModelAdmin action",
424 "This is the test email from an admin action",
425 "from@example.com",
426 ["to@example.com"],
427 ).send()
428
429
430@admin.action(

Callers

nothing calls this directly

Calls 2

EmailMessageClass · 0.90
sendMethod · 0.45

Tested by

no test coverage detected