Changes between Initial Version and Version 1 of Ticket #32806
- Timestamp:
- Jun 1, 2021, 9:43:23 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32806 – Description
initial v1 1 Python 3.8 , Django 3.2.31 Python 3.8.5, Django 3.2.3 2 2 {{{ 3 3 from django.core.mail import EmailMessage … … 22 22 }}} 23 23 24 because …/lib/python3.8/site-packages/django/core/mail/message.py on attachdoes:24 because `…/lib/python3.8/site-packages/django/core/mail/message.py` on `attach` does: 25 25 26 26 {{{ … … 39 39 Why decode it if a Py3 string can't be b64encoded? I think that actually it should be *encoded* as bytes if already str using the DEFAULT_CHARSET before appending the tuple to self.attachments. 40 40 41 If I .attach(name, bytes_object, 'application/csv')then the send operation works fine.41 If I `.attach(name, bytes_object, 'application/csv')` then the send operation works fine. 42 42 43 43 (I'm open to the possibility that I miss something and this is not a bug :) )