summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCefin <kevon@tuta.io>2021-11-03 12:51:10 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-11-16 17:04:41 +0100
commitc52fa19b40d8c643f2fe6e80d7d5c25a21bc0299 (patch)
treedca9c35e3a896fb73daa4b4c3c79d573cefbf6d2
parent059cb2b4e3a2f836bbb31a957a8f28b39f141fbd (diff)
downloadIshtar-c52fa19b40d8c643f2fe6e80d7d5c25a21bc0299.tar.bz2
Ishtar-c52fa19b40d8c643f2fe6e80d7d5c25a21bc0299.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),