summaryrefslogtreecommitdiff
path: root/ishtar_common/forms_common.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r--ishtar_common/forms_common.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py
index 7a77a6615..560a1abb3 100644
--- a/ishtar_common/forms_common.py
+++ b/ishtar_common/forms_common.py
@@ -261,6 +261,8 @@ class SimplePersonForm(ManageOldType, NewItemForm):
associated_models = {'attached_to': models.Organization,
'title': models.TitleType}
title = forms.ChoiceField(label=_("Title"), choices=[])
+ salutation = forms.CharField(label=_("Salutation"), max_length=200,
+ required=False)
surname = forms.CharField(label=_(u"Surname"), max_length=50,
validators=[name_validator])
name = forms.CharField(label=_(u"Name"), max_length=200,
@@ -363,14 +365,14 @@ class AccountFormSelection(forms.Form):
class BasePersonForm(forms.ModelForm):
class Meta:
model = models.Person
- fields = ['title', 'name', 'surname', 'address', 'address_complement',
- 'town', 'postal_code']
+ fields = ['title', 'salutation', 'name', 'surname', 'address',
+ 'address_complement', 'town', 'postal_code']
class BaseOrganizationPersonForm(forms.ModelForm):
class Meta:
model = models.Person
- fields = ['attached_to', 'title', 'name', 'surname']
+ fields = ['attached_to', 'title', 'salutation', 'name', 'surname']
widgets = {'attached_to': widgets.JQueryPersonOrganization(
reverse_lazy('autocomplete-organization'),
reverse_lazy('organization_create'),