From 1c8fb84f3ce413d54afb3f5a7065f357327958cd Mon Sep 17 00:00:00 2001 From: Charlie Jacomme Date: Tue, 7 Aug 2018 19:52:15 +0200 Subject: [PATCH] add info for mail aliases export --- api/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/serializers.py b/api/serializers.py index 1da76e6c..09f06fb9 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -621,7 +621,7 @@ class WhitelistSerializer(NamespacedHMSerializer): class EMailAddressSerializer(NamespacedHMSerializer): """Serialize `users.models.EMailAddress` objects. """ - + user = serializers.CharField(source='user.pseudo', read_only=True) class Meta: model = users.EMailAddress fields = ('user', 'local_part', 'complete_email_address', 'api_url') @@ -657,7 +657,7 @@ class LocalEmailUsersSerializer(NamespacedHMSerializer): class Meta: model = users.User fields = ('local_email_enabled', 'local_email_redirect', - 'email_address') + 'email_address', 'email') #Firewall