diff options
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 |
commit | 7569568dd7810cec673758a27ad1f725110e0c1d (patch) | |
tree | 47dd66ff1e6bd95e1e799b6823d9e40e0a5e0438 /archaeological_finds/forms.py | |
parent | b6f2dfaeca2bd8e507333b299985e1e3386f6689 (diff) | |
download | Ishtar-7569568dd7810cec673758a27ad1f725110e0c1d.tar.bz2 Ishtar-7569568dd7810cec673758a27ad1f725110e0c1d.zip |
Archaeological finds: update sheet and search
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 3 |
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): |