summaryrefslogtreecommitdiff
path: root/ishtar_common/forms_common.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-12-05 13:27:29 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-12-05 13:27:29 +0100
commit1750ec8e009e1413867ffc1c3c6a1f96f0b425fa (patch)
tree3159428d0c2889320cb341b3ad3f4af4d90603af /ishtar_common/forms_common.py
parent49cde9a6af567e84fafee23ef7cb8b23dca14d0f (diff)
downloadIshtar-1750ec8e009e1413867ffc1c3c6a1f96f0b425fa.tar.bz2
Ishtar-1750ec8e009e1413867ffc1c3c6a1f96f0b425fa.zip
Fix Person modification
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r--ishtar_common/forms_common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py
index 584759c29..b6cab8b6a 100644
--- a/ishtar_common/forms_common.py
+++ b/ishtar_common/forms_common.py
@@ -124,7 +124,7 @@ class PersonFormSelection(forms.Form):
PersonSelect, models.Person),
validators=[models.valid_id(models.Person)])
-class PersonForm(forms.Form):
+class SimplePersonForm(forms.Form):
form_label = _("Identity")
associated_models = {'attached_to':models.Organization}
title = forms.ChoiceField(label=_("Title"), choices=models.Person.TYPE)
@@ -148,6 +148,8 @@ class PersonForm(forms.Form):
reverse_lazy('autocomplete-organization'),
associated_model=models.Organization, new=True),
validators=[models.valid_id(models.Organization)], required=False)
+
+class PersonForm(SimplePersonForm):
person_types = forms.MultipleChoiceField(label=_("Person type"),
choices=[], widget=forms.CheckboxSelectMultiple)