mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Allow message to be saved without attachments.
This commit is contained in:
parent
a730abbb14
commit
25f1a71725
2 changed files with 6 additions and 3 deletions
|
|
@ -256,7 +256,10 @@ class Message(models.Model):
|
|||
null=True,
|
||||
)
|
||||
|
||||
attachments = models.ManyToManyField(MessageAttachment)
|
||||
attachments = models.ManyToManyField(
|
||||
MessageAttachment,
|
||||
blank=True,
|
||||
)
|
||||
|
||||
objects = models.Manager()
|
||||
unread_messages = UnreadMessageManager()
|
||||
|
|
@ -321,4 +324,4 @@ class Message(models.Model):
|
|||
return email.message_from_string(self.body)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.subject
|
||||
return self.subject
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue