summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-11-27 02:37:56 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-11-27 02:37:56 +0100
commit77631b250e93eb197dda205b51e6da9a114aff79 (patch)
tree79d29b124db93397cd3e5d80431acd379ec6b996 /archaeological_finds/forms.py
parentd7c7115eabe4045422e101df339580a0e1155f81 (diff)
downloadIshtar-77631b250e93eb197dda205b51e6da9a114aff79.tar.bz2
Ishtar-77631b250e93eb197dda205b51e6da9a114aff79.zip
Archaeological finds - preservation to consider, integrity, batch: search and window
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r--archaeological_finds/forms.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index 808003712..51ac1eed7 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -148,8 +148,11 @@ class FindSelect(TableSelect):
# TODO search by warehouse
material_types = forms.ChoiceField(label=_(u"Material type"), choices=[])
object_types = forms.ChoiceField(label=_(u"Object type"), choices=[])
+ preservation_to_considers = forms.ChoiceField(
+ choices=[], label=_(u"Preservation type"))
conservatory_state = forms.ChoiceField(label=_(u"Conservatory state"),
choices=[])
+ integrities = forms.ChoiceField(label=_(u"Integrity"), choices=[])
base_finds__find__description = forms.CharField(label=_(u"Description"))
base_finds__batch = forms.ChoiceField(label=_(u"Batch/object"),
choices=models.IS_ISOLATED_CHOICES)
@@ -172,6 +175,14 @@ class FindSelect(TableSelect):
models.ObjectType.get_types()
self.fields['checked'].choices = \
[('', '--')] + list(models.CHECK_CHOICES)
+ self.fields['preservation_to_considers'].choices = \
+ models.PreservationType.get_types()
+ self.fields['preservation_to_considers'].help_text = \
+ models.PreservationType.get_help()
+ self.fields['integrities'].choices = \
+ models.IntegrityType.get_types()
+ self.fields['integrities'].help_text = \
+ models.IntegrityType.get_help()
class FindFormSelection(forms.Form):