From 0fb6a394915591ac828c364bffe40e01419e4c5e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 17 Mar 2025 19:40:24 +0100 Subject: ✨ administrative act: intented to is now many (refs #6210) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_finds/forms_treatments.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'archaeological_finds') diff --git a/archaeological_finds/forms_treatments.py b/archaeological_finds/forms_treatments.py index 2c10028d4..3131f4e1d 100644 --- a/archaeological_finds/forms_treatments.py +++ b/archaeological_finds/forms_treatments.py @@ -647,9 +647,9 @@ class AdministrativeActTreatmentSelect(TableSelect): def __init__(self, *args, **kwargs): super(AdministrativeActTreatmentSelect, self).__init__(*args, **kwargs) self.fields['act_type'].choices = ActType.get_types( - dct={'intented_to': 'T'}) + dct={"intented_to_treatment": True}) self.fields['act_type'].help_text = ActType.get_help( - dct={'intented_to': 'T'}) + dct={"intented_to_treatment": True}) self.fields['treatment__treatment_types'].choices = \ models.TreatmentType.get_types() self.fields['treatment__treatment_types'].help_text = \ @@ -673,7 +673,7 @@ class AdministrativeActTreatmentForm(AdministrativeActForm): TYPES = [ FieldType('act_type', ActType, - extra_args={"dct": {'intented_to': 'T'}}), + extra_args={"dct": {"intented_to_treatment": True}}), ] @@ -909,9 +909,9 @@ class AdministrativeActTreatmentFileSelect(TableSelect): super(AdministrativeActTreatmentFileSelect, self).__init__(*args, **kwargs) self.fields['act_type'].choices = ActType.get_types( - dct={'intented_to': 'TF'}) + dct={"intented_to_treatment_request": True}) self.fields['act_type'].help_text = ActType.get_help( - dct={'intented_to': 'TF'}) + dct={"intented_to_treatment_request": True}) self.fields['treatment_file__type'].choices = \ models.TreatmentFileType.get_types() self.fields['treatment_file__type'].help_text = \ @@ -935,7 +935,7 @@ class AdministrativeActTreatmentFileForm(AdministrativeActForm): TYPES = [ FieldType('act_type', ActType, - extra_args={"dct": {'intented_to': 'TF'}}), + extra_args={"dct": {"intented_to_treatment_request": True}}), ] -- cgit v1.2.3