X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7010b5cb6b4e4380d9e23add9c7c98431b6e3f95..700710d1aa59af7316ba9694711bfca051925677:/src/messaging/admin.py diff --git a/src/messaging/admin.py b/src/messaging/admin.py index 615e1e861..da58b3a53 100644 --- a/src/messaging/admin.py +++ b/src/messaging/admin.py @@ -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)