diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-18 12:55:02 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-18 12:55:02 +0100 |
commit | 34155c8357aa8d911c7560e1ec32a06c74871954 (patch) | |
tree | ad28d4d700d458ff62648844d45b588a45055644 /ishtar_common/forms_common.py | |
parent | b2a8dbbc4710ea4a1ad94e6bbc7d73b025e3fd19 (diff) | |
download | Ishtar-34155c8357aa8d911c7560e1ec32a06c74871954.tar.bz2 Ishtar-34155c8357aa8d911c7560e1ec32a06c74871954.zip |
Improve person search
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r-- | ishtar_common/forms_common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index 708e246b2..7b9f69237 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -408,6 +408,7 @@ class BaseOrganizationForm(forms.ModelForm): class PersonSelect(TableSelect): + search_vector = forms.CharField(label=_(u"Full text search")) name = forms.CharField(label=_(u"Name"), max_length=200) surname = forms.CharField(label=_(u"Surname"), max_length=50) email = forms.CharField(label=_(u"Email"), max_length=75) @@ -520,6 +521,7 @@ class PersonUserSelect(PersonSelect): class PersonUserFormSelection(PersonFormSelection): + SEARCH = True form_label = _(u"Person search") associated_models = {'pk': models.Person} currents = {'pk': models.Person} |