X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/700710d1aa59af7316ba9694711bfca051925677..98062d2158ebe1f734d811691ab15e6887684281:/src/messaging/admin.py?ds=sidebyside diff --git a/src/messaging/admin.py b/src/messaging/admin.py index da58b3a53..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 @@ -72,7 +72,7 @@ class ContactAdmin(admin.ModelAdmin): search_fields = ['email'] date_hierarchy = 'since' actions = [ - export_as_csv_action(fields=['id', 'email', 'get_level_display', 'since', 'expires_at']), +# 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']) ]