summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms_treatments.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-01-21 19:46:01 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-01-21 19:46:01 +0100
commitaf1ea36dabb2cd1e165e54020286ff723c109f37 (patch)
tree1ed48662a2ae7a79de1e21eccb6d59b87b52a312 /archaeological_finds/forms_treatments.py
parent41e60b4856d1efe6df3ebd783447a7071e042ca5 (diff)
downloadIshtar-af1ea36dabb2cd1e165e54020286ff723c109f37.tar.bz2
Ishtar-af1ea36dabb2cd1e165e54020286ff723c109f37.zip
Treatment file: adapt forms, models and sheet
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}