1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

During reply update from_email only if not set

This commit is contained in:
Adam Dobrawy 2015-03-14 18:23:19 +01:00
parent 793f92cfcf
commit 24138d1dc7

View file

@ -498,6 +498,7 @@ class Message(models.Model):
pre-set it.
"""
if not getattr(message, 'from_email', None):
if self.mailbox.from_email:
message.from_email = self.mailbox.from_email
else: