newsletter: display and filter by active in admin
authorJan Szejko <janek37@gmail.com>
Wed, 21 Sep 2016 13:57:06 +0000 (15:57 +0200)
committerJan Szejko <janek37@gmail.com>
Wed, 21 Sep 2016 13:57:06 +0000 (15:57 +0200)
src/newsletter/admin.py

index 0133e73..9fe387d 100644 (file)
@@ -8,6 +8,9 @@ from newsletter.models import Subscription
 
 
 class SubscriptionAdmin(admin.ModelAdmin):
+    list_display = ('email', 'active')
+    list_filter = ('active',)
+
     def get_urls(self):
         urls = super(SubscriptionAdmin, self).get_urls()
         my_urls = [