X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/65c2a737f0e3ac2fd83ad884edd1a47393a3f48b..0b1d7187cd243b29566418c3b09fa8043ed53bee:/src/messaging/admin.py diff --git a/src/messaging/admin.py b/src/messaging/admin.py index c12b56ce3..e01adac18 100644 --- a/src/messaging/admin.py +++ b/src/messaging/admin.py @@ -6,7 +6,7 @@ from . import models class EmailTemplateAdmin(admin.ModelAdmin): - list_display = ['state', 'min_days_since', 'subject', 'min_hour'] + list_display = ['state', 'min_days_since', 'subject', 'min_hour', 'is_active'] fieldsets = [ (None, {"fields": [ 'state', @@ -71,7 +71,10 @@ class ContactAdmin(admin.ModelAdmin): list_display = ['email', 'level', 'since', 'expires_at'] search_fields = ['email'] date_hierarchy = 'since' - actions = [export_as_csv_action(fields=['id', 'email', 'get_level_display', 'since', 'expires_at'])] + actions = [ +# export_as_csv_action(fields=['id', 'email', 'get_level_display', 'since', 'expires_at']), + export_as_csv_action('Eksport dla PHPList', fields=['email', 'wl_optout_url']) + ] admin.site.register(models.Contact, ContactAdmin)