summaryrefslogtreecommitdiff
path: root/ishtar_common/forms_common.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-04-03 17:30:58 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-04-03 17:30:58 +0200
commit95c2cf33370ac73cfab6963d54d2a5bc8728d7a8 (patch)
treea9d415d60bb689c6af40c4427d40c9ca8177f3ca /ishtar_common/forms_common.py
parent4f4ea768d9d72b96bcf826c525ed1b066191b11b (diff)
parentc50c0e4e5701b9926fbdad82b4ae54964a9283bb (diff)
downloadIshtar-95c2cf33370ac73cfab6963d54d2a5bc8728d7a8.tar.bz2
Ishtar-95c2cf33370ac73cfab6963d54d2a5bc8728d7a8.zip
Merge branch 'master' into v0.9
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r--ishtar_common/forms_common.py10
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)