summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-09-09 22:36:23 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-09-09 22:36:23 +0200
commit60e6cdb0fe82d3ddad78f3488b8de46744a41e94 (patch)
tree47dd66ff1e6bd95e1e799b6823d9e40e0a5e0438 /archaeological_finds/forms.py
parentda926e6708b89dcaee865632784781c54ace833b (diff)
downloadIshtar-60e6cdb0fe82d3ddad78f3488b8de46744a41e94.tar.bz2
Ishtar-60e6cdb0fe82d3ddad78f3488b8de46744a41e94.zip
Archaeological finds: update sheet and search
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r--archaeological_finds/forms.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index 82c32b2dc..ae91b8383 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -126,6 +126,7 @@ class FindSelect(TableSelect):
dating__period = forms.ChoiceField(label=_(u"Period"), choices=[])
# TODO search by warehouse
material_type = forms.ChoiceField(label=_(u"Material type"), choices=[])
+ object_types = forms.ChoiceField(label=_(u"Object type"), choices=[])
conservatory_state = forms.ChoiceField(label=_(u"Conservatory state"),
choices=[])
base_finds__find__description = forms.CharField(label=_(u"Description"))
@@ -144,6 +145,8 @@ class FindSelect(TableSelect):
models.ConservatoryState.get_types()
self.fields['conservatory_state'].help_text = \
models.ConservatoryState.get_help()
+ self.fields['object_types'].choices = \
+ models.ObjectType.get_types()
class FindFormSelection(forms.Form):