summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
diff options
context:
space:
mode:
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):