diff options
author | lxf <sng@luxagraf.net> | 2021-10-29 10:12:01 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2021-10-29 10:12:01 -0400 |
commit | 281580b107478da4c855a5f2fa56c2b4cd1da7a7 (patch) | |
tree | 692956e227531c33caeee5c2c193d85d89c0266d /app | |
parent | e36b19e65e5d35cb4c802823c808e714ac9e8a55 (diff) |
lttr: added postcards to admin
Diffstat (limited to 'app')
-rw-r--r-- | app/lttr/admin.py | 10 |
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',) + |