summaryrefslogtreecommitdiff
path: root/archaeological_context_records/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/forms.py')
-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),