Increase coverage.

see #1030
This commit is contained in:
Antoine Nguyen
2017-02-15 20:46:47 +01:00
parent e8ceadaa1d
commit cdd4e7e89e
3 changed files with 34 additions and 2 deletions
+2 -1
View File
@@ -269,8 +269,9 @@ class Domain(AdminObject):
self.save(creator=user)
def to_csv(self, csvwriter):
"""Export domain and domain aliases to CSV format."""
csvwriter.writerow([
"domain", self.name, self.quota, self.default_mailbox_quot,
"domain", self.name, self.quota, self.default_mailbox_quota,
self.enabled
])
for dalias in self.domainalias_set.all():