#31574: BUG: EmailMessage cannot mix tuples and lists as arguments
---------------------------------------+------------------------
Reporter: Dehorser | Owner: nobody
Type: Bug | Status: new
Component: Core (Mail) | Version: 3.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
---------------------------------------+------------------------
`EmailMessage` has fields `to`, `cc`, and `bcc` can be either tuples or
lists. However, mixing tuples and lists errors at this method:
{{{
def recipients(self):
return [email for email in (self.to + self.cc + self.bcc) if email]
}}}
Lists and tuples can't be added together.
--
Ticket URL: <https://code.djangoproject.com/ticket/31574>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.57c50553c18f94e3e50f89230f59d6e3%40djangoproject.com.