summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCefin <kevon@tuta.io>2021-11-03 12:51:10 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:58:49 +0200
commit9040078ec6f119db63de6aef9322f09c27338a92 (patch)
tree16c4c9f78f329829160e96ea4ce90128ee47469a
parent97a38fc02cc3edce0c680e5c35507c1f1adeb756 (diff)
downloadIshtar-9040078ec6f119db63de6aef9322f09c27338a92.tar.bz2
Ishtar-9040078ec6f119db63de6aef9322f09c27338a92.zip
add town on bulk update on UE search #5174 part one
-rw-r--r--archaeological_context_records/forms.py8
1 files changed, 8 insertions, 0 deletions
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),