mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
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 = (
|
raw_id_fields = (
|
||||||
'in_reply_to',
|
'in_reply_to',
|
||||||
)
|
)
|
||||||
|
exclude = (
|
||||||
|
'body',
|
||||||
|
)
|
||||||
|
readonly_fields = (
|
||||||
|
'text',
|
||||||
|
)
|
||||||
actions = [resend_message_received_signal]
|
actions = [resend_message_received_signal]
|
||||||
|
|
||||||
if getattr(settings, 'DJANGO_MAILBOX_ADMIN_ENABLED', True):
|
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_text_body(self):
|
||||||
def get_body_from_message(message):
|
def get_body_from_message(message):
|
||||||
body = ''
|
body = ''
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -7,7 +7,7 @@ tests_require=[
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='django-mailbox',
|
name='django-mailbox',
|
||||||
version='1.10.4',
|
version='1.10.5',
|
||||||
url='http://bitbucket.org/latestrevision/django-mailbox/',
|
url='http://bitbucket.org/latestrevision/django-mailbox/',
|
||||||
description='Import mail from POP3, IMAP, local mailboxes or directly from Postfix or Exim4 into your Django application automatically.',
|
description='Import mail from POP3, IMAP, local mailboxes or directly from Postfix or Exim4 into your Django application automatically.',
|
||||||
author='Adam Coddington',
|
author='Adam Coddington',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue