mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #35537 -- Changed EmailMessage.attachments and EmailMultiAlternatives.alternatives to use namedtuples.
This makes it more descriptive to pull out the named fields.
This commit is contained in:
@@ -133,7 +133,15 @@ Decorators
|
||||
Email
|
||||
~~~~~
|
||||
|
||||
* ...
|
||||
* Tuple items of :class:`EmailMessage.attachments
|
||||
<django.core.mail.EmailMessage>` and
|
||||
:class:`EmailMultiAlternatives.attachments
|
||||
<django.core.mail.EmailMultiAlternatives>` are now named tuples, as opposed
|
||||
to regular tuples.
|
||||
|
||||
* :attr:`EmailMultiAlternatives.alternatives
|
||||
<django.core.mail.EmailMultiAlternatives.alternatives>` is now a list of
|
||||
named tuples, as opposed to regular tuples.
|
||||
|
||||
Error Reporting
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user