diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2014-01-06 18:18:08 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2014-01-06 18:18:08 +0100 |
commit | 01832adce9e6c6b4b7fe13ebb7cf54fa326636d6 (patch) | |
tree | 27a409f5c3cb1a9a19f43c9dcb9a17992b6ebed0 /ishtar_common/forms_common.py | |
parent | a5d214fa8546b07bafe841ab1613a709f50493a5 (diff) | |
download | Ishtar-01832adce9e6c6b4b7fe13ebb7cf54fa326636d6.tar.bz2 Ishtar-01832adce9e6c6b4b7fe13ebb7cf54fa326636d6.zip |
Better length for organization name (refs #1569)
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r-- | ishtar_common/forms_common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index ec3ccfb8b..790a128c7 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -69,7 +69,7 @@ def get_person_field(label=_(u"Person"), required=True, person_types=[]): class OrganizationForm(forms.Form): form_label = _(u"Organization") associated_models = {'organization_type':models.OrganizationType} - name = forms.CharField(label=_(u"Name"), max_length=40, + name = forms.CharField(label=_(u"Name"), max_length=300, validators=[name_validator]) organization_type = forms.ChoiceField(label=_(u"Organization type"), choices=[]) @@ -103,7 +103,7 @@ class OrganizationForm(forms.Form): return new_item class OrganizationSelect(TableSelect): - name = forms.CharField(label=_(u"Name"), max_length=30) + name = forms.CharField(label=_(u"Name"), max_length=300) organization_type = forms.ChoiceField(label=_(u"Type"), choices=[]) def __init__(self, *args, **kwargs): |