X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4603878e7fc59d5cd25ec659d5012ddfe7b5152c..1b80c204be885588f7cbe95610e3677f2f886801:/src/messaging/admin.py diff --git a/src/messaging/admin.py b/src/messaging/admin.py index 558c34d8a..9ac76b53d 100644 --- a/src/messaging/admin.py +++ b/src/messaging/admin.py @@ -6,8 +6,8 @@ from . import models class EmailSentInline(admin.TabularInline): model = models.EmailSent - fields = ['timestamp', 'email', 'subject'] - readonly_fields = ['timestamp', 'email', 'subject'] + fields = ['timestamp', 'contact', 'subject'] + readonly_fields = ['timestamp', 'contact', 'subject'] extra = 0 can_delete = False show_change_link = True @@ -56,8 +56,8 @@ admin.site.register(models.EmailTemplate, EmailTemplateAdmin) class EmailSentAdmin(admin.ModelAdmin): list_filter = ['template'] - list_display = ['timestamp', 'template', 'email', 'subject'] - fields = ['timestamp', 'template', 'email', 'subject', 'body', 'hash_value'] + list_display = ['timestamp', 'template', 'contact', 'subject'] + fields = ['timestamp', 'template', 'contact', 'subject', 'body'] readonly_fields = fields change_links = ['template']