diff options
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 |
commit | 1750ec8e009e1413867ffc1c3c6a1f96f0b425fa (patch) | |
tree | 3159428d0c2889320cb341b3ad3f4af4d90603af /ishtar_common/forms_common.py | |
parent | 49cde9a6af567e84fafee23ef7cb8b23dca14d0f (diff) | |
download | Ishtar-1750ec8e009e1413867ffc1c3c6a1f96f0b425fa.tar.bz2 Ishtar-1750ec8e009e1413867ffc1c3c6a1f96f0b425fa.zip |
Fix Person modification
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r-- | ishtar_common/forms_common.py | 4 |
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) |