From 13f7a100046d3a980636621a47926fc3b9707939 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 12 Mar 2025 12:19:20 +0100 Subject: 🐛 account form: fix title, area and person type field (refs #6190) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/forms_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/forms_common.py') diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index 6a8db2693..11649a078 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -1035,7 +1035,7 @@ class PersonSelect(CustomForm, TableSelect): title = forms.ChoiceField(label=_("Title"), choices=[]) salutation = forms.CharField(label=_("Salutation"), max_length=200) email = forms.CharField(label=_("Email"), max_length=75) - person_types = forms.ChoiceField(label=_("Type"), choices=[]) + person_types = forms.ChoiceField(label=_("Person type"), choices=[]) attached_to = forms.IntegerField( label=_("Organization"), widget=widgets.JQueryAutoComplete( @@ -1230,7 +1230,7 @@ class SimplePersonForm(ManageOldType, NewItemForm): class PersonUserSelect(PersonSelect): ishtaruser__isnull = forms.NullBooleanField(label=_("Already has an account")) profiles__profile_type = forms.ChoiceField(label=_("Profile type"), choices=[]) - TYPES = [ + TYPES = PersonSelect.TYPES + [ FieldType("profiles__profile_type", models.ProfileType), ] -- cgit v1.2.3