summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorCefin <kevon@tuta.io>2021-11-02 17:21:25 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:58:49 +0200
commit6f463a1473845cf8374d160630321cb748935331 (patch)
tree863f43c37c29beae1e38c60cc316a715e253067c /archaeological_operations/forms.py
parentf8ca541287102b57fdc11cc1f1990915ebea93fb (diff)
downloadIshtar-6f463a1473845cf8374d160630321cb748935331.tar.bz2
Ishtar-6f463a1473845cf8374d160630321cb748935331.zip
add collaborators on bulk update on EA search #5176
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 68b87698f..3cb01f595 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -2021,10 +2021,17 @@ class QAArchaeologicalSiteFormMulti(QAForm):
form_slug = "archaeological_site-quickaction-modify"
associated_models = {
'qa_towns': Town,
+ 'qa_collaborators': Person,
}
MULTI = True
qa_towns = get_town_field(required=False)
+ qa_collaborators = forms.IntegerField(
+ label=_("Collaborators"), required=False,
+ widget=widgets.JQueryAutoComplete(
+ reverse_lazy('autocomplete-person')
+ ),
+ )
def _get_qa_towns(self, value):
try: