From 64d8d9579a367309e95b752091d70e13ee08e651 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 6 May 2026 16:39:54 +0200 Subject: ✨ operation bulk update: year field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/forms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 744294052..8da0cca85 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -1796,6 +1796,7 @@ class QAOperationFormMulti(QAForm): REPLACE_FIELDS = [ 'qa_operation_type', 'qa_operator', + 'qa_year', 'qa_documentation_received', 'qa_finds_received', "qa_finds_deposit_date", @@ -1804,6 +1805,10 @@ class QAOperationFormMulti(QAForm): qa_operation_type = forms.ChoiceField( label=_("Operation type"), required=False ) + qa_year = forms.IntegerField( + label=_("Year"), required=False, + validators=[validators.MinValueValidator(0), + validators.MaxValueValidator(2100)]) qa_towns = get_town_field(required=False) qa_operator = forms.IntegerField( label=_("Operator"), -- cgit v1.2.3