django-orchestra-test/orchestra/apps/mailboxes/actions.py

8 lines
208 B
Python

from orchestra.admin.actions import SendEmail
class SendMailboxEmail(SendEmail):
def get_queryset_emails(self):
for mailbox in self.queryset.all():
yield mailbox.get_local_address()