mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Add tests docs to CI and fix docs warning
This commit is contained in:
parent
225da2155f
commit
62db0c55c2
6 changed files with 20 additions and 10 deletions
|
|
@ -701,11 +701,11 @@ class Message(models.Model):
|
|||
self.body = base64.b64encode(body.encode('utf-8')).decode('ascii')
|
||||
|
||||
def get_email_object(self):
|
||||
"""Returns an `email.message.Message` instance representing the
|
||||
"""Returns an `email.message.EmailMessage` instance representing the
|
||||
contents of this message and all attachments.
|
||||
|
||||
See [email.Message.Message]_ for more information as to what methods
|
||||
and properties are available on `email.message.Message` instances.
|
||||
See [email.message.EmailMessage]_ for more information as to what methods
|
||||
and properties are available on `email.message.EmailMessage` instances.
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
@ -715,8 +715,8 @@ class Message(models.Model):
|
|||
using stored attachments, or read the message contents stored
|
||||
on-disk.
|
||||
|
||||
.. [email.Message.Message]: Python's `email.message.Message` docs
|
||||
(https://docs.python.org/2/library/email.message.html)
|
||||
.. [email.message.EmailMessage] Python's `email.message.EmailMessage` docs
|
||||
(https://docs.python.org/3/library/email.message.html)
|
||||
|
||||
"""
|
||||
if not hasattr(self, '_email_object'): # Cache fill
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue