summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-07-02 19:58:25 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-13 18:26:03 +0200
commit31873237b90c588f49f403721a382df59719ca1b (patch)
tree38143096a878386d25f9d950a8c4248a30187344 /archaeological_operations/forms.py
parent8533647dd9c2eb008ccfca14813e055e1f5708ef (diff)
downloadIshtar-31873237b90c588f49f403721a382df59719ca1b.tar.bz2
Ishtar-31873237b90c588f49f403721a382df59719ca1b.zip
Full text search: manage facet search (simple, hierarchic, OR) (refs #4180)
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index cbaa37310..4e01a492a 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -472,6 +472,8 @@ RecordRelationsFormSet.form_slug = "operation-080-relations"
class OperationSelect(TableSelect):
+ _model = models.Operation
+
search_vector = forms.CharField(label=_(u"Full text search"),
widget=widgets.SearchWidget)
year = forms.IntegerField(label=_("Year"))
@@ -486,12 +488,9 @@ class OperationSelect(TableSelect):
if settings.ISHTAR_DPTS:
towns__numero_insee__startswith = forms.ChoiceField(
label=_(u"Department"), choices=[])
- common_name = forms.CharField(label=_(u"Name"),
- max_length=30)
- address = forms.CharField(label=_(u"Address / Locality"),
- max_length=100)
- operation_type = forms.ChoiceField(label=_(u"Operation type"),
- choices=[])
+ common_name = forms.CharField(label=_(u"Name"), max_length=30)
+ address = forms.CharField(label=_(u"Address / Locality"), max_length=100)
+ operation_type = forms.ChoiceField(label=_(u"Operation type"), choices=[])
end_date = forms.NullBooleanField(label=_(u"Is open?"))
in_charge = forms.IntegerField(
widget=widgets.JQueryAutoComplete(