diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-03-08 12:25:58 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-03-08 12:25:58 +0100 |
commit | 37e7eb4e3abc92fd2914eba00e951d6c2507ef8e (patch) | |
tree | 0919b7cc9d4595455dea4633fab7d66559cba5b5 /ishtar_common/forms_common.py | |
parent | 5251b82f139329f2c7ee12a5364174f7e8dc6138 (diff) | |
download | Ishtar-37e7eb4e3abc92fd2914eba00e951d6c2507ef8e.tar.bz2 Ishtar-37e7eb4e3abc92fd2914eba00e951d6c2507ef8e.zip |
Change surname and name length (refs #2965)
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r-- | ishtar_common/forms_common.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index 5863baab2..ae72d173f 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -223,8 +223,8 @@ class BaseOrganizationForm(forms.ModelForm): class PersonSelect(TableSelect): - name = forms.CharField(label=_(u"Name"), max_length=30) - surname = forms.CharField(label=_(u"Surname"), max_length=20) + name = forms.CharField(label=_(u"Name"), max_length=200) + surname = forms.CharField(label=_(u"Surname"), max_length=50) email = forms.CharField(label=_(u"Email"), max_length=75) person_types = forms.ChoiceField(label=_(u"Type"), choices=[]) attached_to = forms.IntegerField( @@ -254,11 +254,11 @@ class SimplePersonForm(NewItemForm): form_label = _("Identity") associated_models = {'attached_to': models.Organization} title = forms.ChoiceField(label=_("Title"), choices=models.Person.TYPE) - surname = forms.CharField(label=_(u"Surname"), max_length=20, + surname = forms.CharField(label=_(u"Surname"), max_length=50, validators=[name_validator]) - name = forms.CharField(label=_(u"Name"), max_length=30, + name = forms.CharField(label=_(u"Name"), max_length=200, validators=[name_validator]) - raw_name = forms.CharField(label=_(u"Raw name"), max_length=255, + raw_name = forms.CharField(label=_(u"Raw name"), max_length=300, required=False) address = forms.CharField(label=_(u"Address"), widget=forms.Textarea, required=False) |