From c52fa19b40d8c643f2fe6e80d7d5c25a21bc0299 Mon Sep 17 00:00:00 2001 From: Cefin Date: Wed, 3 Nov 2021 12:51:10 +0100 Subject: add town on bulk update on UE search #5174 part one --- archaeological_context_records/forms.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index c11afd1da..e4a17f6ce 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -700,6 +700,7 @@ class QAContextRecordFormMulti(QAForm): "qa_relation_type": models.RelationType, "qa_related_to": models.ContextRecord, "qa_unit": models.Unit, + "qa_town": models.Town, } REPLACE_FIELDS = ["qa_unit"] @@ -718,6 +719,13 @@ class QAContextRecordFormMulti(QAForm): required=False, ) qa_unit = forms.ChoiceField(label=_("Unit type"), choices=[], required=False) + qa_town = forms.IntegerField( + label=_("Town"), + widget=widgets.JQueryAutoComplete( + reverse_lazy("autocomplete-town"), + ), + required=False, + ) TYPES = [ FieldType("qa_relation_type", models.RelationType), -- cgit v1.2.3