From 281580b107478da4c855a5f2fa56c2b4cd1da7a7 Mon Sep 17 00:00:00 2001 From: lxf Date: Fri, 29 Oct 2021 10:12:01 -0400 Subject: lttr: added postcards to admin --- app/lttr/admin.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'app/lttr/admin.py') diff --git a/app/lttr/admin.py b/app/lttr/admin.py index 9753113..60ec68a 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, OldNewsletterMailing, Subscriber, Newsletter, MailingStatus +from .models import NewsletterMailing, OldNewsletterMailing, Subscriber, Newsletter, MailingStatus, PostcardSubscriber @admin.register(Subscriber) class SubscriberAdmin(admin.ModelAdmin): @@ -84,3 +84,11 @@ class NewsletterMailingAdmin(admin.ModelAdmin): css = { "all": ("my_styles.css",) } + +@admin.register(PostcardSubscriber) +class PostcardSubscriberAdmin(admin.ModelAdmin): + list_display = ('date_created ', 'name', 'address') + + class Media: + js = ('next-prev-links.js',) + -- cgit v1.2.3-70-g09d2