From 5243b561d757cbe0f4d23fcd62b81f935d2bd63c Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Tue, 27 Aug 2019 17:06:56 +0200 Subject: [PATCH] Fixed issues_74 -- Added max_length to FindingForm first_name and last_name fields. --- djangopeople/djangopeople/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/djangopeople/djangopeople/forms.py b/djangopeople/djangopeople/forms.py index 044b28d..79ad8f5 100644 --- a/djangopeople/djangopeople/forms.py +++ b/djangopeople/djangopeople/forms.py @@ -354,8 +354,8 @@ def __init__(self, *args, **kwargs): 'field': BoundField(self, field, 'im_' + shortname), }) - first_name = forms.CharField(label=_('First name')) - last_name = forms.CharField(label=_('Last name')) + first_name = forms.CharField(label=_('First name'), max_length=30) + last_name = forms.CharField(label=_('Last name'), max_length=30) email = forms.EmailField(label=_('E-mail')) blog = forms.URLField(label=_('Blog URL'), required=False) privacy_search = forms.ChoiceField(