summaryrefslogtreecommitdiff
path: root/archaeological_context_records/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-08 14:06:52 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-08 14:06:52 +0100
commit9cb715d77b1f864399023f16c56a6dc088ef5ef1 (patch)
tree1541eb69ea0e75ac362242b50778c98ee8dd91c2 /archaeological_context_records/forms.py
parent4135c16fc28925ba8a42006d1e2849829b7e4ddd (diff)
downloadIshtar-9cb715d77b1f864399023f16c56a6dc088ef5ef1.tar.bz2
Ishtar-9cb715d77b1f864399023f16c56a6dc088ef5ef1.zip
Context record search: add identification and activity criteria (refs #3657)
Diffstat (limited to 'archaeological_context_records/forms.py')
-rw-r--r--archaeological_context_records/forms.py4
1 files changed, 4 insertions, 0 deletions
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}