From c24cb792daedf95f0fb1978e83d20238e4b85580 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 16 Sep 2020 12:12:01 +0200 Subject: [PATCH] Allow exporting emails from admin. --- src/club/admin.py | 2 ++ src/club/locale/de/LC_MESSAGES/django.po | 18 ++++++++++++++--- src/club/locale/en/LC_MESSAGES/django.po | 18 ++++++++++++++--- src/club/locale/es/LC_MESSAGES/django.po | 18 ++++++++++++++--- src/club/locale/fr/LC_MESSAGES/django.po | 18 ++++++++++++++--- src/club/locale/it/LC_MESSAGES/django.po | 18 ++++++++++++++--- src/club/locale/lt/LC_MESSAGES/django.po | 18 ++++++++++++++--- src/club/locale/pl/LC_MESSAGES/django.mo | Bin 5707 -> 5992 bytes src/club/locale/pl/LC_MESSAGES/django.po | 24 +++++++++++++++++------ src/club/locale/ru/LC_MESSAGES/django.po | 18 ++++++++++++++--- src/club/locale/uk/LC_MESSAGES/django.po | 18 ++++++++++++++--- 11 files changed, 140 insertions(+), 30 deletions(-) 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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MBp?L;yk*tIb`nk?qaWA%U6)b-eSS6{5RoNhc^HJI2F6bnA{d+EG) z^tIGJ>V+qc?N0_pn=0;^@YG{2UzN+weL=akX=PP(YkJhr=92reg)3teY|1ZF*otWw|H{OXy+W-*}7;^S___nsfg5f6l$Lr4z-z*NI^l46Tz$ zBd&%R(~HF`*wALejp@QS$j^A4#w21JM&JQVz(cqOPhuGQF%k!{5wFD7PewM_Mi*Q5pB4Dst93gzD%P>i_pJ6d&5-QRHWyv5CW%n2d9% ziiO5de`OfWj!NdTx~GE>-KmA)$bEjKU1hm%%Bqf z6hr-$$vh{N$ZymiLYTNOm*$^=Z^NzE^hVqrEV1T||;Jk*k(EOhr{F7uR7ss-!27+{|gzK<80YHfWEBkXbd? ztap&&ng_^(_{@~O@E$ey-%y$TLd|6aOJ5~SMpY;abzdzOq8AIW*Pg$Ks?ad%{t?uN zX$sZv9O`xcfm(mY#ofx>W6iM^ph{MT`eThfZbsH(u$5W2V*{bZN#TO`H{o*QqZ({V z#B29UFh%cwF+no_n!aLcDq}UVmC$0;Q))_@2_?4NHnX#Z*h#3=DsL*Gb)zZMI?y6k z=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 "" -- 2.20.1