summaryrefslogtreecommitdiff
path: root/app/lttr/admin.py
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2021-10-29 10:12:01 -0400
committerlxf <sng@luxagraf.net>2021-10-29 10:12:01 -0400
commit281580b107478da4c855a5f2fa56c2b4cd1da7a7 (patch)
tree692956e227531c33caeee5c2c193d85d89c0266d /app/lttr/admin.py
parente36b19e65e5d35cb4c802823c808e714ac9e8a55 (diff)
lttr: added postcards to admin
Diffstat (limited to 'app/lttr/admin.py')
-rw-r--r--app/lttr/admin.py10
1 files changed, 9 insertions, 1 deletions
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',)
+