From c21f42ad7db2d65f46fa7011726481f0be0bea5f Mon Sep 17 00:00:00 2001 From: Paolo Gatti Date: Thu, 18 Jul 2013 12:55:33 +0200 Subject: [PATCH] Email field is made not mandatory in user creation and editing. Change-Id: I92a3b5539a20d855ae725a2993bf77eace3c0e28 Fixes: bug #1185195 --- openstack_dashboard/dashboards/admin/users/forms.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/dashboards/admin/users/forms.py b/openstack_dashboard/dashboards/admin/users/forms.py index e4ba02b07..c0039a3c9 100644 --- a/openstack_dashboard/dashboards/admin/users/forms.py +++ b/openstack_dashboard/dashboards/admin/users/forms.py @@ -70,7 +70,9 @@ ADD_PROJECT_URL = "horizon:admin:projects:create" class CreateUserForm(BaseUserForm): name = forms.CharField(label=_("User Name")) - email = forms.EmailField(label=_("Email")) + email = forms.EmailField( + label=_("Email"), + required=False) password = forms.RegexField( label=_("Password"), widget=forms.PasswordInput(render_value=False), @@ -125,7 +127,9 @@ class CreateUserForm(BaseUserForm): class UpdateUserForm(BaseUserForm): id = forms.CharField(label=_("ID"), widget=forms.HiddenInput) name = forms.CharField(label=_("User Name")) - email = forms.EmailField(label=_("Email")) + email = forms.EmailField( + label=_("Email"), + required=False) password = forms.RegexField( label=_("Password"), widget=forms.PasswordInput(render_value=False),