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

Properly gather verbatim mailinglist addresses

Previously the output of this function was a mixed list of strings
and VerbatimAddress objects. It worked because those had a __str__,
but in the new API they must be literal strings.
parent 5f4560b3
......@@ -63,8 +63,8 @@ class MailingList(models.Model):
committeemembership__until__lt=timezone.now().date()):
yield member.user.email
for address in self.addresses.all():
yield address
for verbatimaddress in self.addresses.all():
yield verbatimaddress.address
def clean(self):
super().clean()
......
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