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

14 lines
356 B
Python
Raw Normal View History

2023-07-09 07:51:51 +00:00
from orchestra.admin.actions import SendEmail
class SendMailboxEmail(SendEmail):
def get_email_addresses(self):
for mailbox in self.queryset.all():
yield mailbox.get_local_address()
class SendAddressEmail(SendEmail):
def get_email_addresses(self):
for address in self.queryset.all():
yield address.email