Related to #19, fix the alias creation page

This commit is contained in:
Pierre Jaury
2016-08-11 14:27:01 +02:00
parent dcaf3e3473
commit 5581f1b0d9

View File

@@ -21,7 +21,7 @@ class DestinationField(fields.SelectMultipleField):
for email in managed: for email in managed:
selected = self.data is not None and self.coerce(email) in self.data selected = self.data is not None and self.coerce(email) in self.data
yield (email, email, selected) yield (email, email, selected)
for email in self.data: for email in self.data or ():
if email not in managed: if email not in managed:
yield (email, email, True) yield (email, email, True)