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

8 lines
208 B
Python
Raw Normal View History

2014-11-27 19:17:26 +00:00
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()