Changes between Version 1 and Version 2 of Ticket #28042


Ignore:
Timestamp:
Apr 6, 2017, 9:53:44 AM (7 years ago)
Author:
Dariusz Paluch
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28042 – Description

    v1 v2  
    11{{{
     2>>> m = EmailMessage(attachments=[('filename1', 'content1',)])
     3>>> m.attach('filename2', 'content2')
     4>>> m.attachments
     5[('filename1', 'content1'),
     6 ('filename2', 'content2', 'application/octet-stream')]
     7>>> m.message()
    28Traceback (most recent call last):
    39  File "/usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py", line 2881, in run_code
    410    exec(code_obj, self.user_global_ns, self.user_ns)
    5   File "<ipython-input-43-5151166d7cfd>", line 1, in <module>
     11  File "<ipython-input-53-5151166d7cfd>", line 1, in <module>
    612    m.message()
    713  File "/usr/local/lib/python3.4/dist-packages/django/core/mail/message.py", line 302, in message
     
    1723AttributeError: 'NoneType' object has no attribute 'split'
    1824}}}
     25
     26This code was work in 1.10
Back to Top