forked from mirror/django-mailbox
Hide original body from email message display in admin; bumping version number.
This commit is contained in:
parent
c94e2c62a3
commit
156b6fb418
3 changed files with 11 additions and 1 deletions
|
|
@ -65,6 +65,12 @@ class MessageAdmin(admin.ModelAdmin):
|
|||
raw_id_fields = (
|
||||
'in_reply_to',
|
||||
)
|
||||
exclude = (
|
||||
'body',
|
||||
)
|
||||
readonly_fields = (
|
||||
'text',
|
||||
)
|
||||
actions = [resend_message_received_signal]
|
||||
|
||||
if getattr(settings, 'DJANGO_MAILBOX_ADMIN_ENABLED', True):
|
||||
|
|
|
|||
|
|
@ -365,6 +365,10 @@ class Message(models.Model):
|
|||
)
|
||||
)
|
||||
|
||||
@property
|
||||
def text(self):
|
||||
return self.get_text_body()
|
||||
|
||||
def get_text_body(self):
|
||||
def get_body_from_message(message):
|
||||
body = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue