diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-12 12:19:20 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-13 15:48:10 +0100 |
commit | 13f7a100046d3a980636621a47926fc3b9707939 (patch) | |
tree | fe9cace989f95d6d6f404afe4714914aec732247 | |
parent | b4e0bc6502030f5ea91235ea501056b400f41e1d (diff) | |
download | Ishtar-13f7a100046d3a980636621a47926fc3b9707939.tar.bz2 Ishtar-13f7a100046d3a980636621a47926fc3b9707939.zip |
🐛 account form: fix title, area and person type field (refs #6190)
-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 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), ] |