From 9cb715d77b1f864399023f16c56a6dc088ef5ef1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 8 Mar 2023 14:06:52 +0100 Subject: Context record search: add identification and activity criteria (refs #3657) --- archaeological_context_records/forms.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archaeological_context_records/forms.py') diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index 760f154f0..e22bb73cc 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -165,6 +165,8 @@ class RecordSelect(GeoItemSelect, PeriodSelect): label=_("Search within related operations"), choices=[] ) unit = forms.ChoiceField(label=_("Unit type"), choices=[]) + activity = forms.ChoiceField(label=_("Activity"), choices=[]) + identification = forms.ChoiceField(label=_("Identification"), choices=[]) parcel = forms.CharField(label=_("Parcel")) has_finds = forms.NullBooleanField(label=_("Has finds")) cr_relation_types = forms.ChoiceField( @@ -177,6 +179,8 @@ class RecordSelect(GeoItemSelect, PeriodSelect): FieldType("cr_relation_types", models.RelationType), FieldType("ope_relation_types", OpeRelationType), FieldType("excavation_technics", models.ExcavationTechnicType), + FieldType("activity", models.ActivityType), + FieldType("identification", models.IdentificationType), ] + GeoItemSelect.TYPES SITE_KEYS = {"archaeological_site": None} -- cgit v1.2.3