Skip to content

Commit

Permalink
domain --> project
Browse files Browse the repository at this point in the history
  • Loading branch information
czue committed Sep 11, 2020
1 parent 168076b commit be674a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion corehq/apps/settings/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

user_domains = self.couch_user.get_domains()
all_domains = (self.ALL_DOMAINS, _('All Domains'))
all_domains = (self.ALL_DOMAINS, _('All Projects'))
self.fields['domain'].choices = [all_domains] + [(d, d) for d in user_domains]
self.helper = HQFormHelper()
self.helper.layout = Layout(
Expand Down
6 changes: 3 additions & 3 deletions corehq/apps/settings/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def column_names(self):
return [
_("Name"),
_("API Key"),
_("Domain"),
_("Project"),
_("IP Allowlist"),
_("Created"),
_("Delete"),
Expand All @@ -548,7 +548,7 @@ def paginated_list(self):
"id": api_key.id,
"name": api_key.name,
"key": redacted_key,
"domain": api_key.domain or _('All Domains'),
"domain": api_key.domain or _('All Projects'),
"ip_allowlist": (
", ".join(api_key.ip_allowlist)
if api_key.ip_allowlist else _("All IP Addresses")
Expand Down Expand Up @@ -579,7 +579,7 @@ def get_create_item_data(self, create_form):
'id': new_api_key.id,
'name': new_api_key.name,
'key': f"{new_api_key.key} ({copy_key_message})",
"domain": new_api_key.domain or _('All Domains'),
"domain": new_api_key.domain or _('All Projects'),
'ip_allowlist': new_api_key.ip_allowlist,
'created': new_api_key.created.isoformat()
},
Expand Down

0 comments on commit be674a9

Please sign in to comment.