X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a844cd31e6a3053be61ce26a6bae5269c13bca62..d8a368e376f9f50ff0e3714ef716df548e86bd7f:/src/messaging/admin.py?ds=sidebyside diff --git a/src/messaging/admin.py b/src/messaging/admin.py index 615e1e861..06ed21202 100644 --- a/src/messaging/admin.py +++ b/src/messaging/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin from django.contrib import messages -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from fnpdjango.actions import export_as_csv_action from . import models @@ -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)