From: Radek Czajka Date: Wed, 16 Sep 2020 10:12:01 +0000 (+0200) Subject: Allow exporting emails from admin. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/c24cb792daedf95f0fb1978e83d20238e4b85580 Allow exporting emails from admin. --- diff --git a/src/club/admin.py b/src/club/admin.py index 79b76cf21..2c56a7327 100644 --- a/src/club/admin.py +++ b/src/club/admin.py @@ -8,6 +8,7 @@ from django.db.models import Q from django.utils.html import conditional_escape from django.utils.safestring import mark_safe from django.utils.translation import gettext_lazy as _ +from fnpdjango.actions import export_as_csv_action from modeltranslation.admin import TranslationAdmin from wolnelektury.utils import YesNoFilter from . import models @@ -60,6 +61,7 @@ class ScheduleAdmin(admin.ModelAdmin): date_hierarchy = 'started_at' raw_id_fields = ['membership'] inlines = [PayUOrderInline, PayUCardTokenInline] + actions = [export_as_csv_action()] admin.site.register(models.Schedule, ScheduleAdmin) diff --git a/src/club/locale/de/LC_MESSAGES/django.po b/src/club/locale/de/LC_MESSAGES/django.po index 56d2927af..d97fd3695 100644 --- a/src/club/locale/de/LC_MESSAGES/django.po +++ b/src/club/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-09-10 15:34+0200\n" +"POT-Creation-Date: 2020-09-16 12:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,11 +18,11 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: club/admin.py:45 +#: club/admin.py:46 msgid "payment complete" msgstr "" -#: club/admin.py:51 +#: club/admin.py:52 msgid "schedule expired" msgstr "" @@ -259,6 +259,18 @@ msgstr "" msgid "PayU notifications" msgstr "" +#: club/templates/admin/club/schedule/change_list.html:7 +msgid "Active monthly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:12 +msgid "Active yearly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:17 +msgid "One-time donations in last 30 days" +msgstr "" + #: club/templates/club/index.html:20 msgid "Congratulations – you're already a supporter of Wolne Lektury!" msgstr "" diff --git a/src/club/locale/en/LC_MESSAGES/django.po b/src/club/locale/en/LC_MESSAGES/django.po index 56d2927af..d97fd3695 100644 --- a/src/club/locale/en/LC_MESSAGES/django.po +++ b/src/club/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-09-10 15:34+0200\n" +"POT-Creation-Date: 2020-09-16 12:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,11 +18,11 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: club/admin.py:45 +#: club/admin.py:46 msgid "payment complete" msgstr "" -#: club/admin.py:51 +#: club/admin.py:52 msgid "schedule expired" msgstr "" @@ -259,6 +259,18 @@ msgstr "" msgid "PayU notifications" msgstr "" +#: club/templates/admin/club/schedule/change_list.html:7 +msgid "Active monthly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:12 +msgid "Active yearly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:17 +msgid "One-time donations in last 30 days" +msgstr "" + #: club/templates/club/index.html:20 msgid "Congratulations – you're already a supporter of Wolne Lektury!" msgstr "" diff --git a/src/club/locale/es/LC_MESSAGES/django.po b/src/club/locale/es/LC_MESSAGES/django.po index 56d2927af..d97fd3695 100644 --- a/src/club/locale/es/LC_MESSAGES/django.po +++ b/src/club/locale/es/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-09-10 15:34+0200\n" +"POT-Creation-Date: 2020-09-16 12:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,11 +18,11 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: club/admin.py:45 +#: club/admin.py:46 msgid "payment complete" msgstr "" -#: club/admin.py:51 +#: club/admin.py:52 msgid "schedule expired" msgstr "" @@ -259,6 +259,18 @@ msgstr "" msgid "PayU notifications" msgstr "" +#: club/templates/admin/club/schedule/change_list.html:7 +msgid "Active monthly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:12 +msgid "Active yearly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:17 +msgid "One-time donations in last 30 days" +msgstr "" + #: club/templates/club/index.html:20 msgid "Congratulations – you're already a supporter of Wolne Lektury!" msgstr "" diff --git a/src/club/locale/fr/LC_MESSAGES/django.po b/src/club/locale/fr/LC_MESSAGES/django.po index 250afc7f9..e35fa3e59 100644 --- a/src/club/locale/fr/LC_MESSAGES/django.po +++ b/src/club/locale/fr/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-09-10 15:34+0200\n" +"POT-Creation-Date: 2020-09-16 12:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,11 +18,11 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: club/admin.py:45 +#: club/admin.py:46 msgid "payment complete" msgstr "" -#: club/admin.py:51 +#: club/admin.py:52 msgid "schedule expired" msgstr "" @@ -259,6 +259,18 @@ msgstr "" msgid "PayU notifications" msgstr "" +#: club/templates/admin/club/schedule/change_list.html:7 +msgid "Active monthly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:12 +msgid "Active yearly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:17 +msgid "One-time donations in last 30 days" +msgstr "" + #: club/templates/club/index.html:20 msgid "Congratulations – you're already a supporter of Wolne Lektury!" msgstr "" diff --git a/src/club/locale/it/LC_MESSAGES/django.po b/src/club/locale/it/LC_MESSAGES/django.po index 56d2927af..d97fd3695 100644 --- a/src/club/locale/it/LC_MESSAGES/django.po +++ b/src/club/locale/it/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-09-10 15:34+0200\n" +"POT-Creation-Date: 2020-09-16 12:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,11 +18,11 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: club/admin.py:45 +#: club/admin.py:46 msgid "payment complete" msgstr "" -#: club/admin.py:51 +#: club/admin.py:52 msgid "schedule expired" msgstr "" @@ -259,6 +259,18 @@ msgstr "" msgid "PayU notifications" msgstr "" +#: club/templates/admin/club/schedule/change_list.html:7 +msgid "Active monthly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:12 +msgid "Active yearly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:17 +msgid "One-time donations in last 30 days" +msgstr "" + #: club/templates/club/index.html:20 msgid "Congratulations – you're already a supporter of Wolne Lektury!" msgstr "" diff --git a/src/club/locale/lt/LC_MESSAGES/django.po b/src/club/locale/lt/LC_MESSAGES/django.po index be9931566..2dd6dfe35 100644 --- a/src/club/locale/lt/LC_MESSAGES/django.po +++ b/src/club/locale/lt/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-09-10 15:34+0200\n" +"POT-Creation-Date: 2020-09-16 12:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -20,11 +20,11 @@ msgstr "" "11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? " "1 : n % 1 != 0 ? 2: 3);\n" -#: club/admin.py:45 +#: club/admin.py:46 msgid "payment complete" msgstr "" -#: club/admin.py:51 +#: club/admin.py:52 msgid "schedule expired" msgstr "" @@ -261,6 +261,18 @@ msgstr "" msgid "PayU notifications" msgstr "" +#: club/templates/admin/club/schedule/change_list.html:7 +msgid "Active monthly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:12 +msgid "Active yearly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:17 +msgid "One-time donations in last 30 days" +msgstr "" + #: club/templates/club/index.html:20 msgid "Congratulations – you're already a supporter of Wolne Lektury!" msgstr "" diff --git a/src/club/locale/pl/LC_MESSAGES/django.mo b/src/club/locale/pl/LC_MESSAGES/django.mo index e2f59d049..733fa830b 100644 Binary files a/src/club/locale/pl/LC_MESSAGES/django.mo and b/src/club/locale/pl/LC_MESSAGES/django.mo differ diff --git a/src/club/locale/pl/LC_MESSAGES/django.po b/src/club/locale/pl/LC_MESSAGES/django.po index 13824fea1..a08a0ae78 100644 --- a/src/club/locale/pl/LC_MESSAGES/django.po +++ b/src/club/locale/pl/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-09-10 15:34+0200\n" -"PO-Revision-Date: 2020-09-10 15:41+0200\n" +"POT-Creation-Date: 2020-09-16 12:08+0200\n" +"PO-Revision-Date: 2020-09-16 12:09+0200\n" "Last-Translator: \n" "Language-Team: \n" "Language: pl\n" @@ -20,11 +20,11 @@ msgstr "" "%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" "X-Generator: Poedit 2.3\n" -#: club/admin.py:45 +#: club/admin.py:46 msgid "payment complete" msgstr "płatność zakończona" -#: club/admin.py:51 +#: club/admin.py:52 msgid "schedule expired" msgstr "harmonogram przedawniony" @@ -265,6 +265,18 @@ msgstr "notyfikacja PayU" msgid "PayU notifications" msgstr "notyfikacje PayU" +#: club/templates/admin/club/schedule/change_list.html:7 +msgid "Active monthly recurring donations" +msgstr "Aktywne miesięczne wpłaty cykliczne" + +#: club/templates/admin/club/schedule/change_list.html:12 +msgid "Active yearly recurring donations" +msgstr "Aktywne roczne wpłaty cykliczne" + +#: club/templates/admin/club/schedule/change_list.html:17 +msgid "One-time donations in last 30 days" +msgstr "Jednorazowe wpłaty w ciągu ostatnich 30 dni" + #: club/templates/club/index.html:20 msgid "Congratulations – you're already a supporter of Wolne Lektury!" msgstr "Gratulacje – należysz już do Towarzystwa Przyjaciół Wolnych Lektur!" @@ -328,8 +340,8 @@ msgid "" "You can unsubscribe at any point. More in the privacy policy." msgstr "" -"W każdej chwili możesz zrezygnować z subskrypcji. Więcej w polityce " +"W każdej chwili możesz zrezygnować z subskrypcji. Więcej w polityce " "prywatności." #: club/templates/club/membership_form.html:228 diff --git a/src/club/locale/ru/LC_MESSAGES/django.po b/src/club/locale/ru/LC_MESSAGES/django.po index 2f7e8c8f6..7f272943f 100644 --- a/src/club/locale/ru/LC_MESSAGES/django.po +++ b/src/club/locale/ru/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-09-10 15:34+0200\n" +"POT-Creation-Date: 2020-09-16 12:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -20,11 +20,11 @@ msgstr "" "%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" "%100>=11 && n%100<=14)? 2 : 3);\n" -#: club/admin.py:45 +#: club/admin.py:46 msgid "payment complete" msgstr "" -#: club/admin.py:51 +#: club/admin.py:52 msgid "schedule expired" msgstr "" @@ -261,6 +261,18 @@ msgstr "" msgid "PayU notifications" msgstr "" +#: club/templates/admin/club/schedule/change_list.html:7 +msgid "Active monthly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:12 +msgid "Active yearly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:17 +msgid "One-time donations in last 30 days" +msgstr "" + #: club/templates/club/index.html:20 msgid "Congratulations – you're already a supporter of Wolne Lektury!" msgstr "" diff --git a/src/club/locale/uk/LC_MESSAGES/django.po b/src/club/locale/uk/LC_MESSAGES/django.po index 34cc7e681..17c3a8184 100644 --- a/src/club/locale/uk/LC_MESSAGES/django.po +++ b/src/club/locale/uk/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-09-10 15:34+0200\n" +"POT-Creation-Date: 2020-09-16 12:08+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -21,11 +21,11 @@ msgstr "" "100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || " "(n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" -#: club/admin.py:45 +#: club/admin.py:46 msgid "payment complete" msgstr "" -#: club/admin.py:51 +#: club/admin.py:52 msgid "schedule expired" msgstr "" @@ -262,6 +262,18 @@ msgstr "" msgid "PayU notifications" msgstr "" +#: club/templates/admin/club/schedule/change_list.html:7 +msgid "Active monthly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:12 +msgid "Active yearly recurring donations" +msgstr "" + +#: club/templates/admin/club/schedule/change_list.html:17 +msgid "One-time donations in last 30 days" +msgstr "" + #: club/templates/club/index.html:20 msgid "Congratulations – you're already a supporter of Wolne Lektury!" msgstr ""