diff options
author | luxagraf <sng@luxagraf.net> | 2020-11-11 14:54:09 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-11-11 14:54:09 -0500 |
commit | 52c80b30dc84d85cbad2fe317d1058e6a0c58803 (patch) | |
tree | 1b9a56cd06879763bbe9f724d46a46ff54b28c8b /app/lttr/admin.py | |
parent | 1cfbf44615d5053e6e200972ff74ade38e7d7c31 (diff) |
finished up newsletter formatting and delivery. Just need to clean up
the rough edges
Diffstat (limited to 'app/lttr/admin.py')
-rw-r--r-- | app/lttr/admin.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/lttr/admin.py b/app/lttr/admin.py index 13e2607..d7d68bc 100644 --- a/app/lttr/admin.py +++ b/app/lttr/admin.py @@ -2,7 +2,7 @@ from django.contrib import admin from utils.widgets import AdminImageWidget, LGEntryForm -from .models import NewsletterMailing, Subscriber +from .models import NewsletterMailing, Subscriber, Newsletter, MailingStatus @admin.register(Subscriber) class SubscriberAdmin(admin.ModelAdmin): @@ -13,6 +13,9 @@ class SubscriberAdmin(admin.ModelAdmin): class Media: js = ('next-prev-links.js',) +@admin.register(Newsletter) +class NewsletterAdmin(admin.ModelAdmin): + pass @admin.register(NewsletterMailing) class NewsletterMailingAdmin(admin.ModelAdmin): @@ -24,6 +27,8 @@ class NewsletterMailingAdmin(admin.ModelAdmin): ('title', "newsletter", "issue"), 'subtitle', 'body_markdown', + 'body_html', + 'body_email_html', ('pub_date', 'status'), 'slug', 'featured_image', @@ -42,3 +47,8 @@ class NewsletterMailingAdmin(admin.ModelAdmin): css = { "all": ("my_styles.css",) } + +@admin.register(MailingStatus) +class MailingStatusAdmin(admin.ModelAdmin): + list_display = ('newsletter_mailing', 'subscriber', 'status', 'creation_date') + list_filter = ('status', 'creation_date') |