summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms_treatments.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/forms_treatments.py')
-rw-r--r--archaeological_finds/forms_treatments.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/forms_treatments.py b/archaeological_finds/forms_treatments.py
index 56eb76802..fd74cc599 100644
--- a/archaeological_finds/forms_treatments.py
+++ b/archaeological_finds/forms_treatments.py
@@ -285,8 +285,8 @@ class TreatmentDeletionForm(FinalForm):
u"lost!")
confirm_end_msg = _(u"Would you like to delete this treatment?")
-SLICING = (("month", _(u"months")), ('year', _(u"years")),)
+SLICING = (("month", _(u"months")), ('year', _(u"years")),)
DATE_SOURCE = (("start", _(u"Start date")), ("end", _(u"Closing date")),)
@@ -402,6 +402,7 @@ class AdministrativeActTreatmentModifForm(
class TreatmentFileSelect(TableSelect):
+ search_vector = forms.CharField(label=_(u"Full text search"))
name = forms.CharField(label=_(u"Name"))
internal_reference = forms.CharField(label=_(u"Internal ref."))
year = forms.IntegerField(label=_(u"Year"))
@@ -433,6 +434,7 @@ class TreatmentFileSelect(TableSelect):
class TreatmentFileFormSelection(forms.Form):
+ SEARCH_AND_SELECT = True
form_label = _("Treatment request search")
associated_models = {'pk': models.TreatmentFile}
currents = {'pk': models.TreatmentFile}