Changes between Version 1 and Version 2 of Ticket #28042
- Timestamp:
- Apr 6, 2017, 9:53:44 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28042 – Description
v1 v2 1 1 {{{ 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() 2 8 Traceback (most recent call last): 3 9 File "/usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py", line 2881, in run_code 4 10 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> 6 12 m.message() 7 13 File "/usr/local/lib/python3.4/dist-packages/django/core/mail/message.py", line 302, in message … … 17 23 AttributeError: 'NoneType' object has no attribute 'split' 18 24 }}} 25 26 This code was work in 1.10