diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-21 20:28:02 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-21 20:28:02 +0100 |
commit | 8661870960701ba1ac7b52a867ed14d10acacf93 (patch) | |
tree | 5e230e6e9a775029ee560a92a4678064ae1a3ec4 /archaeological_operations/forms.py | |
parent | 9aa59d8ea96e19d472227ff6eefdefc929523700 (diff) | |
download | Ishtar-8661870960701ba1ac7b52a867ed14d10acacf93.tar.bz2 Ishtar-8661870960701ba1ac7b52a867ed14d10acacf93.zip |
Administrativ act: adapt forms, models and sheet
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index d26af8771..3541020d8 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -1327,6 +1327,7 @@ OperationSourceFormSelection = get_form_selection( class AdministrativeActOpeSelect(TableSelect): + search_vector = forms.CharField(label=_(u"Full text search")) year = forms.IntegerField(label=_("Year")) index = forms.IntegerField(label=_("Index")) if settings.COUNTRY == 'fr': @@ -1380,6 +1381,7 @@ class AdministrativeActOpeSelect(TableSelect): class AdministrativeActOpeFormSelection(IshtarForm): + SEARCH_AND_SELECT = True form_label = _("Administrative act search") associated_models = {'pk': models.AdministrativeAct} currents = {'pk': models.AdministrativeAct} |