diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2014-02-11 18:26:01 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2014-02-11 18:26:01 +0100 | 
| commit | 5c2c0b08b7dc92a65514e12f03edb4eabb2aa1ba (patch) | |
| tree | c59aeeac0301d24ac88f4456707a03a8cb19c5ae /archaeological_operations/forms.py | |
| parent | 550ef4020c6e4115dc9ae80cd0162c0b0d89948c (diff) | |
| download | Ishtar-5c2c0b08b7dc92a65514e12f03edb4eabb2aa1ba.tar.bz2 Ishtar-5c2c0b08b7dc92a65514e12f03edb4eabb2aa1ba.zip | |
Modify search criteria for operation and files (refs #1619)
Diffstat (limited to 'archaeological_operations/forms.py')
| -rw-r--r-- | archaeological_operations/forms.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index bcdd44cf6..2754f2d1a 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -186,6 +186,8 @@ ParcelFormSet = formset_factory(ParcelForm, can_delete=True,  ParcelFormSet.form_label = _(u"Parcels")  class OperationSelect(TableSelect): +    year = forms.IntegerField(label=_("Year")) +    operation_code = forms.IntegerField(label=_(u"Numeric reference"))      common_name = forms.CharField(label=_(u"Name (full text search)"),                                    max_length=30)      if settings.COUNTRY == 'fr': @@ -201,7 +203,6 @@ class OperationSelect(TableSelect):          associated_model=Person), label=_(u"In charge"))      remains = forms.ChoiceField(label=_(u"Remains"), choices=[])      periods = forms.ChoiceField(label=_(u"Periods"), choices=[]) -    year = forms.IntegerField(label=_("Year"))      start_before = forms.DateField(label=_(u"Started before"),                                     widget=widgets.JQueryDate)      start_after = forms.DateField(label=_(u"Started after"), | 
