summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-12 18:33:51 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-12 18:33:51 +0200
commitc4402e45cdb8f5e3432a249e3c134534b3fc1998 (patch)
treeaa89c322aa3a0ad5c06e9e022ffc7b695e3758a7
parenta77af8373cac0432370709972a55debb7abaa09c (diff)
downloadIshtar-c4402e45cdb8f5e3432a249e3c134534b3fc1998.tar.bz2
Ishtar-c4402e45cdb8f5e3432a249e3c134534b3fc1998.zip
Search forms: add full text search for operation, context record and find (refs #2912)
-rw-r--r--archaeological_context_records/forms.py1
-rw-r--r--archaeological_finds/forms.py1
-rw-r--r--archaeological_operations/forms.py1
3 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py
index e5c244fde..c310e98fa 100644
--- a/archaeological_context_records/forms.py
+++ b/archaeological_context_records/forms.py
@@ -56,6 +56,7 @@ class OperationFormSelection(forms.Form):
class RecordSelect(TableSelect):
+ search_vector = forms.CharField(label=_(u"Full text search"))
label = forms.CharField(label=_(u"ID"), max_length=100)
parcel__town = get_town_field()
if settings.COUNTRY == 'fr':
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index aa0ae4621..1f81cf52f 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -366,6 +366,7 @@ DatingFormSet.form_label = _("Dating")
class FindSelect(TableSelect):
+ search_vector = forms.CharField(label=_(u"Full text search"))
base_finds__cache_short_id = forms.CharField(label=_(u"Short ID"))
base_finds__cache_complete_id = forms.CharField(label=_(u"Complete ID"))
label = forms.CharField(label=_(u"Free ID"))
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 651cd740f..841131da6 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -480,6 +480,7 @@ RecordRelationsFormSet.form_label = _(u"Relations")
class OperationSelect(TableSelect):
+ search_vector = forms.CharField(label=_(u"Full text search"))
year = forms.IntegerField(label=_("Year"))
operation_code = forms.IntegerField(label=_(u"Numeric reference"))
if settings.COUNTRY == 'fr':