Unverified Commit ce074154 authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

mailinglist API: add a clarifying comment

parent 0be008f9
......@@ -64,7 +64,7 @@ def _create_automatic_list(names, prefix, members,
if multilingual:
data['addresses'] = [member.user.email for member in members]
yield data
yield data # this is the complete list, e.g. leden@
for language in settings.LANGUAGES:
localized_data = data.copy()
localized_data['addresses'] = [
......@@ -72,7 +72,7 @@ def _create_automatic_list(names, prefix, members,
if member.language == language[0]]
localized_data['names'] = [
'{}-{}'.format(n, language[0]) for n in names]
yield localized_data
yield localized_data # these are localized lists, e.g. leden-nl@
else:
data['addresses'] = [member.user.email for member in members]
yield data
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