diff --git a/musician/api.py b/musician/api.py index 2b33dee..6b60c0c 100644 --- a/musician/api.py +++ b/musician/api.py @@ -221,7 +221,7 @@ class Orchestra(object): querystring = "domain={}".format(domain_json['id']) # retrieve services associated to a domain - domain_json['mails'] = self.retrieve_service_list( + domain_json['addresses'] = self.retrieve_service_list( Address.api_name, querystring) # retrieve websites (as they cannot be filtered by domain on the API we should do it here) diff --git a/musician/models.py b/musician/models.py index 146f7c3..8aa4e77 100644 --- a/musician/models.py +++ b/musician/models.py @@ -203,7 +203,7 @@ class Domain(OrchestraModel): "id": None, "name": None, "records": [], - "mails": [], + "addresses": [], "usage": {}, "websites": [], "url": None, diff --git a/musician/templates/musician/dashboard.html b/musician/templates/musician/dashboard.html index 8226bd1..591b26e 100644 --- a/musician/templates/musician/dashboard.html +++ b/musician/templates/musician/dashboard.html @@ -16,6 +16,11 @@
- {{ domain.mails|length }} {% trans "mail addresses created" %}
- {% if domain.addresses_left.alert_level %}
-
- {{ domain.addresses_left.count }} {% trans "mail address left" %}
- {% endif %}
+ {{ domain.addresses|length }} {% trans "mail addresses created" %}