summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_finds/forms.py2
-rw-r--r--archaeological_finds/models_finds.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index 4d2b399fd..929f1bade 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -918,6 +918,7 @@ class FindSelect(HistorySelect):
]),
(_(u"Preservation"), (
"integrities", "remarkabilities", "conservatory_state",
+ "conservatory_comment",
"alterations", "alteration_causes", "preservation_to_considers",
"treatment_emergency")
)
@@ -1123,6 +1124,7 @@ class FindSelect(HistorySelect):
choices=[])
conservatory_state = forms.ChoiceField(label=_(u"Conservatory state"),
choices=[])
+ conservatory_comment = forms.CharField(label=_("Conservatory comment"))
alterations = forms.ChoiceField(
label=_(u"Alteration"), choices=[])
alteration_causes = forms.ChoiceField(
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 157841ab7..89b52977f 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -1200,6 +1200,10 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem,
SearchAltName(
pgettext_lazy("key for text search", "dating-comment"),
'dating_comment__iexact'),
+ 'conservatory_comment':
+ SearchAltName(
+ pgettext_lazy("key for text search", "conservatory-comment"),
+ 'conservatory_comment__iexact'),
'length__lower':
SearchAltName(
pgettext_lazy("key for text search", "length-lower"),