summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-16 17:43:20 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-16 17:43:20 +0200
commit74b5ed4972570919f2655948b9c2655892ae19c8 (patch)
treea5bc8855e2fb99ea3b753298f2d6b83f512d897a /archaeological_operations/forms.py
parent9b7699ff154f1736c9ed0a93d061812c8296a86f (diff)
downloadIshtar-74b5ed4972570919f2655948b9c2655892ae19c8.tar.bz2
Ishtar-74b5ed4972570919f2655948b9c2655892ae19c8.zip
Docs: search by operation code (refs #3015)
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index b61285177..f71129615 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -1120,10 +1120,15 @@ SourceOperationFormSelection = get_form_selection(
class OperationSourceSelect(SourceSelect):
+ operation__year = forms.IntegerField(label=_(u"Operation's year"))
+ operation__operation_code = forms.IntegerField(
+ label=_(u"Numeric reference"))
+ if settings.COUNTRY == 'fr':
+ operation__code_patriarche = forms.IntegerField(
+ label="Numéro d'opération (OA Patriarche)")
operation__towns = get_town_field(label=_(u"Operation's town"))
operation__operation_type = forms.ChoiceField(label=_(u"Operation type"),
choices=[])
- operation__year = forms.IntegerField(label=_(u"Operation's year"))
def __init__(self, *args, **kwargs):
super(OperationSourceSelect, self).__init__(*args, **kwargs)