From c49ab04b3da30ec79a3138dcf9fd5f4ab7ece72b Mon Sep 17 00:00:00 2001 From: Tres Henry Date: Sun, 4 Mar 2012 16:44:30 -0800 Subject: [PATCH] Fixed a couple of places where tenant was still being shown to the user. Change-Id: Ibd79e06bb47c4a2152ffee6c8ac86dc8f1945ae3 --- horizon/dashboards/syspanel/users/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horizon/dashboards/syspanel/users/forms.py b/horizon/dashboards/syspanel/users/forms.py index 841c64cd0..78068283b 100644 --- a/horizon/dashboards/syspanel/users/forms.py +++ b/horizon/dashboards/syspanel/users/forms.py @@ -36,7 +36,7 @@ class BaseUserForm(forms.SelfHandlingForm): def __init__(self, request, *args, **kwargs): super(BaseUserForm, self).__init__(*args, **kwargs) # Populate tenant choices - tenant_choices = [('', "Select a tenant")] + tenant_choices = [('', _("Select a project"))] for tenant in api.tenant_list(request, admin=True): if tenant.enabled: tenant_choices.append((tenant.id, tenant.name)) @@ -76,7 +76,7 @@ class CreateUserForm(BaseUserForm): default_role.id) except: exceptions.handle(request, - _('Unable to add user to primary tenant.')) + _('Unable to add user to primary project.')) return shortcuts.redirect('horizon:syspanel:users:index') except: exceptions.handle(request, _('Unable to create user.'))