diff options
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 |
commit | fb18b5f233a3f890ea7efb4a4fa0b2ebb452aba4 (patch) | |
tree | 79d29b124db93397cd3e5d80431acd379ec6b996 /archaeological_finds/forms.py | |
parent | 2ce97f3759688bf17b9a1933eea5d5f31412a8ab (diff) | |
download | Ishtar-fb18b5f233a3f890ea7efb4a4fa0b2ebb452aba4.tar.bz2 Ishtar-fb18b5f233a3f890ea7efb4a4fa0b2ebb452aba4.zip |
Archaeological finds - preservation to consider, integrity, batch: search and window
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 11 |
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): |