From d292d3b59d91a5fe3141a990fe914d3531d6dfbd Mon Sep 17 00:00:00 2001 From: bdzim Date: Fri, 20 Oct 2017 10:24:44 -0500 Subject: [PATCH] change email max length to 144 --- django/apps/blue_management/blue_mgnt/views/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/apps/blue_management/blue_mgnt/views/users.py b/django/apps/blue_management/blue_mgnt/views/users.py index 17cc70a..3dff1a3 100644 --- a/django/apps/blue_management/blue_mgnt/views/users.py +++ b/django/apps/blue_management/blue_mgnt/views/users.py @@ -206,7 +206,7 @@ def get_new_user_form(api, features, account_info, config, local_groups, groups, class NewUserForm(forms.Form): if not features['email_as_username']: username = forms.CharField(max_length=45) - email = forms.EmailField() + email = forms.EmailField(max_length=144) name = forms.CharField(max_length=45) group_id = forms.ChoiceField(local_groups, label='Group') @@ -517,7 +517,7 @@ def user_detail(request, api, account_info, config, username, email, saved=False class UserForm(forms.Form): if local_user: name = forms.CharField(max_length=45) - email = forms.EmailField(max_length=150) + email = forms.EmailField(max_length=144) group_id = forms.ChoiceField(local_groups, label='Group') enabled = forms.BooleanField(required=False) else: