summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCefin <kevon@tuta.io>2022-03-14 11:34:56 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:58:49 +0200
commitffe317ea360685e12c22746fccf89fd02d9a3276 (patch)
treef81c046a9f819d6f01f8b6835b11854c9a6f44cb
parent087c47607abefb7bc72aee3e769d14fd65a7c166 (diff)
downloadIshtar-ffe317ea360685e12c22746fccf89fd02d9a3276.tar.bz2
Ishtar-ffe317ea360685e12c22746fccf89fd02d9a3276.zip
Context Record, Bulk update : modify qa_parcel for replace and adding warning message #5293
-rw-r--r--archaeological_context_records/forms.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py
index 44d89fcf1..debb63b44 100644
--- a/archaeological_context_records/forms.py
+++ b/archaeological_context_records/forms.py
@@ -708,6 +708,7 @@ class QAContextRecordFormMulti(QAForm):
"qa_unit",
"qa_town",
"qa_archaeological_site",
+ "qa_parcel",
]
MULTI = True
@@ -760,6 +761,9 @@ class QAContextRecordFormMulti(QAForm):
for cr in self.items:
if op_pk != cr.operation.pk and op_pk > 0:
disable = self.fields["qa_parcel"].disabled = True
+ self.fields["qa_parcel"].choices = [
+ (1, _("Parcel can be modified only if operations are the same"))
+ ]
break
op_pk = cr.operation.pk
if not disable: