Add mailinglist for society chairs

parent 3651c4a3
This diff was suppressed by a .gitattributes entry.
......@@ -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 <se_bastiaan@outlook.com>\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. "
......
......@@ -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),
......
......@@ -48,6 +48,11 @@
<td>commissievoorzitters, committeechairs</td>
<td>{% trans "Archived list that can be used to send mail to all committee chairs." %}</td>
</tr>
<tr>
<td></td>
<td>gezelschapvoorzitters, societychairs</td>
<td>{% trans "Archived list that can be used to send mail to all society chairs." %}</td>
</tr>
<tr>
<td></td>
<td>mentors</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment