summaryrefslogtreecommitdiff
path: root/archaeological_finds/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_finds/forms.py
parent9b7699ff154f1736c9ed0a93d061812c8296a86f (diff)
downloadIshtar-74b5ed4972570919f2655948b9c2655892ae19c8.tar.bz2
Ishtar-74b5ed4972570919f2655948b9c2655892ae19c8.zip
Docs: search by operation code (refs #3015)
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r--archaeological_finds/forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index 03a9c5762..7b9c68d75 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -431,6 +431,11 @@ SourceFindFormSelection = get_form_selection(
class FindSourceSelect(SourceSelect):
find__base_finds__context_record__operation__year = forms.IntegerField(
label=_(u"Year of the operation"))
+ find__base_finds__context_record__operation__operation_code = \
+ forms.IntegerField(label=_(u"Numeric reference"))
+ if settings.COUNTRY == 'fr':
+ find__base_finds__context_record__operation__code_patriarche = \
+ forms.IntegerField(label="Numéro d'opération (OA Patriarche)")
find__datings__period = forms.ChoiceField(
label=_(u"Period of the archaelogical find"), choices=[])
find__material_type = forms.ChoiceField(