diff options
Diffstat (limited to 'app/lttr/admin.py')
-rw-r--r-- | app/lttr/admin.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/lttr/admin.py b/app/lttr/admin.py new file mode 100644 index 0000000..1b919d6 --- /dev/null +++ b/app/lttr/admin.py @@ -0,0 +1,13 @@ +from django.contrib import admin + +from .models import NewsletterMailing, Subscriber + + +@admin.register(Subscriber) +class SubscriberAdmin(admin.ModelAdmin): + list_display = ('email_field', 'user', 'date_created', 'subscribed', 'subscribe_date', 'unsubscribed') + search_fields = ['email_field'] + list_filter = ['unsubscribed'] + + class Media: + js = ('next-prev-links.js',) |