diff --git a/website/mailinglists/locale/nl/LC_MESSAGES/django.mo b/website/mailinglists/locale/nl/LC_MESSAGES/django.mo index 3c186c89809f0332e10fe21a3f429cb0649e24c7..57c90e26d1d12a28a57ad528d4a25fb972bc941c 100644 Binary files a/website/mailinglists/locale/nl/LC_MESSAGES/django.mo and b/website/mailinglists/locale/nl/LC_MESSAGES/django.mo differ diff --git a/website/mailinglists/locale/nl/LC_MESSAGES/django.po b/website/mailinglists/locale/nl/LC_MESSAGES/django.po index a6d106faac8e51731629cf8bb4598f365139a967..801a93bffe57e98597daca2088d45d50c1c78797 100644 --- a/website/mailinglists/locale/nl/LC_MESSAGES/django.po +++ b/website/mailinglists/locale/nl/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-12-05 19:46+0100\n" -"PO-Revision-Date: 2018-12-05 19:47+0100\n" +"POT-Creation-Date: 2019-06-20 16:49+0200\n" +"PO-Revision-Date: 2019-06-20 16:50+0200\n" "Last-Translator: Sébastiaan Versteeg \n" "Language-Team: \n" "Language: nl\n" @@ -16,7 +16,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 2.2\n" +"X-Generator: Poedit 2.2.3\n" #: admin.py models.py msgid "List aliasses" @@ -188,6 +188,12 @@ msgstr "" "Gearchiveerde lijst die gebruikt kan worden om mail naar alle " "commissievoorzitters te versturen." +#: templates/admin/mailinglists/change_list.html +msgid "Archived list that can be used to send mail to all society chairs." +msgstr "" +"Gearchiveerde lijst die gebruikt kan worden om mail naar alle " +"gezelschapvoorzitters te versturen." + #: templates/admin/mailinglists/change_list.html msgid "" "Archived list that can be used to send mail to all orientation mentors. " diff --git a/website/mailinglists/services.py b/website/mailinglists/services.py index 844fb2a33ea5ca88c1a4c920e845872bdac942a4..4842001c5701d0a056ac5c615f9730ed99aa5caf 100644 --- a/website/mailinglists/services.py +++ b/website/mailinglists/services.py @@ -18,6 +18,15 @@ def get_automatic_lists(): Member(email='intern@thalia.nu') ] + current_society_chairs = (MemberGroupMembership.active_objects + .filter(group__board=None) + .filter(group__committee=None) + .filter(chair=True) + .prefetch_related('member')) + society_chair_emails = [x.member for x in current_society_chairs] + [ + Member(email='intern@thalia.nu') + ] + active_committee_memberships = (MemberGroupMembership.active_objects .filter(group__board=None) .filter(group__society=None) @@ -54,6 +63,9 @@ def get_automatic_lists(): lists += _create_automatic_list( ['commissievoorzitters', 'committeechairs'], '[THALIA] [CHAIRS]', committee_chair_emails, moderated=False) + lists += _create_automatic_list( + ['gezelschapvoorzitters', 'societychairs'], '[THALIA] [SOCIETY]', + society_chair_emails, moderated=False) lists += _create_automatic_list( ['optin'], '[THALIA] [OPTIN]', Member.current_members.filter( profile__receive_optin=True), diff --git a/website/mailinglists/templates/admin/mailinglists/change_list.html b/website/mailinglists/templates/admin/mailinglists/change_list.html index c4ec4a5411be890dfddaf7d8beb35071c13b01fd..032beb5a2afb5a46e7156ad0a0f0c6a2c5f29b32 100644 --- a/website/mailinglists/templates/admin/mailinglists/change_list.html +++ b/website/mailinglists/templates/admin/mailinglists/change_list.html @@ -48,6 +48,11 @@ commissievoorzitters, committeechairs {% trans "Archived list that can be used to send mail to all committee chairs." %} + + + gezelschapvoorzitters, societychairs + {% trans "Archived list that can be used to send mail to all society chairs." %} + mentors